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

Set Analysis or If Statement?

Hello,

I have the below if statement that gets me the expected result however I don't think it's the best way to do the query. I want to count the number of customers who have used only one TRANSCODE, the other query would be counting customers who use more than one TRANSCODE (so just change = to >).

Would anyone be able to try and get this into set analysis?

count(aggr(if(count(distinct TRANSCODE) =1,1), Customer))

Thanks,


Ralph

1 Reply
MayilVahanan

HI

     Try like this,

Use Customer as dimension:

     =Count({<Customer = {"=count(Transcode)=1"}>}Transcode) .

     =Count({<Customer = {"=count(Transcode)>1"}>}Transcode)

Hope it helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.