Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Set Analysis Question: Top 20 customers v. everyone else

I'd like to build some dashboards that compare the top 20 customers to everyone else. Top 20 may change depending on which filters are selected. Can this be done? How would I use set analysis to select top 20 vs. those not in top 20?

1 Solution

Accepted Solutions
johnw
Champion III
Champion III

Here's one way. I THINK the ranking will respect your other selections, but I haven't verified.

sum({<Customer={"=rank(sum(Sales))<=20"}>} Sales)
sum({<Customer={"=rank(sum(Sales))> 20"}>} Sales)

View solution in original post

1 Reply
johnw
Champion III
Champion III

Here's one way. I THINK the ranking will respect your other selections, but I haven't verified.

sum({<Customer={"=rank(sum(Sales))<=20"}>} Sales)
sum({<Customer={"=rank(sum(Sales))> 20"}>} Sales)