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

Announcements
Streamlining user types in Qlik Cloud capacity-based subscriptions: Read the Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Qlikuser09
Creator II
Creator II

Sum if and Distinct

if([Allowed]='A',Count(distinct [UserID]),0) ----- not working for counting distinct user ID based on selection

2 Solutions

Accepted Solutions
tresB
Champion III
Champion III

Instead of If(Count... structure, try Count(If(.. structure, like:

Count(Distinct if([Allowed]='A', [UserID]))

View solution in original post

Taoufiq_Zarra


Count({<Allowed={'A'}>}distinct [UserID])

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉

View solution in original post

2 Replies
tresB
Champion III
Champion III

Instead of If(Count... structure, try Count(If(.. structure, like:

Count(Distinct if([Allowed]='A', [UserID]))

Taoufiq_Zarra


Count({<Allowed={'A'}>}distinct [UserID])

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉