Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

column Total as Percentage based on Expression Total

Hi all

By using the expression

Rangesum ((avg(if([TEST VALUE]>90 and [TEST VALUE]<=100 , [TEST VALUE]))*Avg(Weight)/100) +
(
avg(if([TEST VALUE]>80 and [TEST VALUE]<=90 , [TEST VALUE]))*Avg(Weight)/100) +
(
avg(if([TEST VALUE]>70 and [TEST VALUE]<=80 , [TEST VALUE]))*Avg(Weight)/100) +
(
avg(if([TEST VALUE]>65 and [TEST VALUE]<=70 , [TEST VALUE]))*Avg(Weight)/100) +
(avg(if([TEST VALUE]>30 and [TEST VALUE]<=65 , [TEST VALUE]))*Avg(Weight)/100) +
(avg(if([TEST VALUE]<30 , [TEST VALUE]))*Avg(Weight)/100)


I am getting values 


Employee BandTotal #
I56.10
II44.40
III45.88
IV43.84
V43.94
VI43.88
278.05



Now i want the Total value   ie 278.05 for the next expression to calculate the percentage of utilization for the employee band

for example for band 1 i need to display   56.10/278.05 *100 =20.18

Please advice

Thanks in advance

5 Replies
Anonymous
Not applicable
Author

Hello Villa,

try like this. create another field like this in ur script.

(Total#/Sum(Total#))*100 AS Band_perc

Not applicable
Author

HI Venkat

The column TOTAL# is a result of the above script and its not a direct value from source

Not applicable
Author

Any Sollutions

Anonymous
Not applicable
Author

You are getting value for total field na, u can write same logic on that expression...

vardhancse
Specialist III
Specialist III

as its a expression total, i think we can not use that for calculation