Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
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)

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!