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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

aggr funcation

we want count of sales unit code whose sum(Amount)>=1000000

count



(distinct aggr( if(sum(AMOUNT)>=1000000

),SalesUnitCode))

it's show zero

please help urgent basic





6 Replies
Not applicable
Author

use numcount

Not applicable
Author

where we use numcount

Not applicable
Author

please tell me the result what it should come for ur expression

Not applicable
Author

expersion worng

Not applicable
Author

Try this

calculate the sum of Amount at the backend i.e script

load sum(Amount) as xyz

resident TableName

group by code;

then count(if(xyz>1000,code))

Not applicable
Author

Hi

Test with

=sum( aggr( if(sum(AMOUNT)>=1000000 , 1 , 0) , SalesUnitCode))

regards

jj