Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Error on Sum Expression Aging Report

SUM Expression.png

5 Replies
Lisa_P
Employee
Employee

Set Analysis should be the solution. Try this ..

Sum({<Age={">=0<=30"}>}OpenBalance)

jyothish8807
Master II
Master II

Try like this:

sum(if((Age>0) and (Age<=30),OpenBalance,0))


or

Sum({<Age={">=0<=30"}>}OpenBalance)

Br,

KC

Best Regards,
KC
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

Use aggr function like below.

Sum(Aggr(If Statement....,DImension1,DImension2))

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Anonymous
Not applicable
Author

DIMS.png

tresesco
MVP
MVP

Age and OpenBalance are not fields in your data model. They look to be labels. And labels can't be aggregated (using sum() here). To get the same result from another column in aggregation function, you could rather use the same expression. If you could provide a sample app and explain expected output, it would be easier for us to help.