Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
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