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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Aggr function problem

Hi

I need a help....I would like to calculate the total amount of the suppliers with more than 1250000

=if(aggr(sum(Amount),SupplierID)>1250000,sum(Amount))

the formula is giving me the total amount not the sum of the amount for the ones with more than 1250000(Amount)

Labels (1)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

No aggr() required:

Sum({<SupplierID= {"=sum({1} Amount)>1250000"}>} Amount)

View solution in original post

4 Replies
jonas_rezende
Specialist
Specialist

Hi.

Please, use the expression below:

Aggr(Sum({$<SupplierID= {"=sum(Amount) > 1250000"}>} Amount),SupplierID)

Hope this helps!

Anonymous
Not applicable
Author

Hi,  try

if(sum(Total<SupplierID>amount)>125000,sum(Total<SupplierID>Amount))

Regards!!,

Jannnet-

Anonymous
Not applicable
Author

No aggr() required:

Sum({<SupplierID= {"=sum({1} Amount)>1250000"}>} Amount)

Not applicable
Author

Exactly what I am looking for..Thank you!