Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

error in sum total

hi,

somehow my sum(total is not working in the attached file.

kindly help.

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Change your second Expression to

=(Sum([Time to complete])/Sum(Total [Time to complete]))*sum(Allocation)

you Need to Change to  sum(allocation)

please check if the result is correct. if not, write what you want to achieve

View solution in original post

2 Replies
Anonymous
Not applicable
Author

Change your second Expression to

=(Sum([Time to complete])/Sum(Total [Time to complete]))*sum(Allocation)

you Need to Change to  sum(allocation)

please check if the result is correct. if not, write what you want to achieve

hic
Former Employee
Former Employee

It depends on what you want to calculate... Rudolf's suggestion is one possible way. Other possibilities are

     (Sum([Time to complete])/Sum(Total [Time to complete]))*Avg(Allocation)

     Sum([Time to complete]*Allocation)/Sum(Total [Time to complete])

The bottom line is that you cannot have a "naked" field reference in an expression. You need to move it into an aggregation function.

See also It’s all Aggregations

HIC