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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How To Filter Dimension Members

Hello,

I have a listbox using dimension called Partner, and it contains all the available Partner list.

However, for the specific Hotel chart, I only want the listbox to show Partner that have Booking>0

Here's the Booking expression:  Sum({<LOB={HOTEL}>}Booking)

How do I use an expression in the listbox to return only the Partner with Booking>0?

Your help is appreciated!

1 Solution

Accepted Solutions
Not applicable
Author

Hi,

This should work:

if(aggr(Sum({<LOB={HOTEL}>}Booking),Partner)>0,Partner)

Regards,

Kiran

View solution in original post

3 Replies
Not applicable
Author

Hi,

This should work:

if(aggr(Sum({<LOB={HOTEL}>}Booking),Partner)>0,Partner)

Regards,

Kiran

Not applicable
Author

Similar question on dimension filtering. 

I currently have a chart that I am filtering top 10 by presentation property "Max Visible Number"=10

I want to remove this filter, and apply it in the Dimension coding.

How do I filter top 10 Partner Dimension based on the following expressions in decending order

Sum({<LOB={HOTEL}>}Booking)

Your help is appreciated.

Not applicable
Author

Instead of the aggr function you can use rank function with condition rank <=10.

Regards,

Kiran.