Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
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
tresesco
MVP
MVP

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
tresesco
MVP
MVP

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") 😉