Expand my Community achievements bar.

SOLVED

calculate two fields to variance result

Avatar

Former Community Member

I've got 2 numeric fields called "on record" and "physical count". "on record" field is pre-populated and the user enters the new number in the the "physical count" field. The number of "physical count" can be more or less than "on record" field. I'd like the result in the variance to calculate either plus or minus.

and there will be grand total in the bottom of the "variance" column. Here is the image that shows the fields in the table.

Please help with this script

table.jpg

Thanks for your help!!!

~ jbazum

1 Accepted Solution

Avatar

Correct answer by
Former Community Member

Take a look at the attached. Tweak the variance calculation, if necessary.

calc.png

Steve

View solution in original post

3 Replies

Avatar

Correct answer by
Former Community Member

Take a look at the attached. Tweak the variance calculation, if necessary.

calc.png

Steve

Avatar

Level 1

dou you have scrript for text field in php, I have the sam problem

The following has evaluated to null or missing: ==> liqladmin("SELECT id, value FROM metrics WHERE id = 'net_accepted_solutions' and user.id = '${acceptedAnswer.author.id}'").data.items [in template "analytics-container" at line 83, column 41] ---- Tip: It's the step after the last dot that caused this error, not those before it. ---- Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)?? ---- ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign answerAuthorNetSolutions = li... [in template "analytics-container" at line 83, column 5] ----