Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to exclude certain dimension values

Dimension: StoreName

Expression: sum(Revenue)

I am trying to exclude the dimension to include only stores that have >100 customer accounts associated with it. How do I go about doing this?

I tried

if(count(DISTINCT Account)>100, StoreName)

but that doesn't seem to work. Should I be using an aggr() function? Set analysis?

Thank you!

1 Solution

Accepted Solutions
maxgro
MVP
MVP

=if(aggr(count(DISTINCT Account), StoreName)>100, StoreName)

View solution in original post

4 Replies
maxgro
MVP
MVP

sum({$<StoreName={"=count(distinct Account)>100"}>} Revenue)

Not applicable
Author

Thanks, Massimo!

I would use that as the expression, but is there any way I could exclude those dimension values using a calculated dimension rather than doing it in the expression?

maxgro
MVP
MVP

=if(aggr(count(DISTINCT Account), StoreName)>100, StoreName)

Not applicable
Author

That worked perfectly. Thank you!