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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
guidodepauw
Contributor
Contributor

Count if and measurement

I want to make a formula that count my Key_accounts based on difference of two measurements :

if(fAbs(sum(distinct CARRYING_AM)-sum(CRRYNG_AMNT))>'1000',count (distinct [%Key]),0)

 

Labels (1)
1 Solution

Accepted Solutions
lironbaram
Partner - Master III
Partner - Master III

Hi 
this expression should work

sum(aggr(if(fAbs(sum(distinct CARRYING_AM)-sum(CRRYNG_AMNT))>1000,1,0), [%Key]))

View solution in original post

2 Replies
lironbaram
Partner - Master III
Partner - Master III

Hi 
this expression should work

sum(aggr(if(fAbs(sum(distinct CARRYING_AM)-sum(CRRYNG_AMNT))>1000,1,0), [%Key]))

guidodepauw
Contributor
Contributor
Author

It works many thanks