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: 
Taylorcc
Contributor III
Contributor III

AGGR Set Analysis

Hello, 

 

How can I change the following to count referral numbers that have a null K10 difference? 

 

COUNT( IF(AGGR($(K10 Difference),OMReferralNumber)<=0 OR AGGR($(K10 Difference),ReferralNumber)>0,1))

 

Thank you

Labels (1)
1 Solution

Accepted Solutions
rubenmarin
MVP
MVP

Hi, maybe with: COUNT(AGGR(If(IsNull($(K10 Difference)),OMReferralNumber),OMReferralNumber))

Or: Sum(Aggr(If(IsNull($(K10 Difference)),1),OMReferralNumber))

View solution in original post

3 Replies
rubenmarin
MVP
MVP

Hi, maybe with: COUNT(AGGR(If(IsNull($(K10 Difference)),OMReferralNumber),OMReferralNumber))

Or: Sum(Aggr(If(IsNull($(K10 Difference)),1),OMReferralNumber))

Taylorcc
Contributor III
Contributor III
Author

Thanks Ruben, 

The first option is working 🙂 How do I convert this to show the referral numbers in a table? 

(I would like just one column with referral numbers, not one column with referral numbers and a second with 1 or 0 if the difference is null)

Thanks again 

rubenmarin
MVP
MVP

Hi, you can try to create a dimesnion with this:

Aggr(If(IsNull($(K10 Difference)),OMReferralNumber),OMReferralNumber)