Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
awqvuserneo
Creator
Creator

Set Analysis: returning count(distinct State) where count(Distinct State)>=10

Hi folks,

Would you kindly help me with converting this "IF" statement to set analysis? (Assuming I will need to display it in Pivot Chart" instead of "Straight Chart")


=If(count(Distinct State) >= 10, count(Distinct State), 0)

As the dimension, I will have the list of Countries. I would expect to have the result as follows:

Capture.PNG.png

I appreciate everyone's help on this.

Thanks in advance,

Anton

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Maybe like

=count({<Country = {"=count(DISTINCT State)>=10"}>} DISTINCT State)

View solution in original post

3 Replies
swuehl
MVP
MVP

Maybe like

=count({<Country = {"=count(DISTINCT State)>=10"}>} DISTINCT State)

Not applicable

Hi,

I would do:

count({<State ={"count(distinct State)> 10"} distinct State)

Try this

Fabrice

awqvuserneo
Creator
Creator
Author

Thanks swuehl & Fabrice for your quick respond. It works!