Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Filter listbox values

Hello

How do you filter listbox values?

Eg:

I have a listbox containing customers.

Lets say i have from A to Z customers:

A

B

C

D

E

F

G

and so on.

But in my charts there is only data for A,B,D.

So i want my listbox only to show A,B,D and not all the others because they dont have any data on them.

I would think something like this, but it is not working:

=if(sum({$<"[DimCustomer].CustomerName"=>} "[FactQVTimeRegistered].TimeRegistered") >0,"[DimCustomer].CustomerName", null())

1 Solution

Accepted Solutions
er_mohit
Master II
Master II

ok

then try this way

aggr(only({$<[FactQVTimeRegistered].TimeRegistered"={'>0'}>}[DimCustomer].CustomerName"),[DimCustomer].CustomerName")

View solution in original post

11 Replies
Not applicable
Author

Check Hide Excluded in General Tab.

Not applicable
Author

No - This will only hide excluded when i have selected something. I want it to filtered when nothing at all is selected

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

     If they dont have any data at all, you can delete them from data model only.

     Give one where condition while loading the data in application.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Not applicable
Author

I cant delete them from the data model, cause i use them elsewhere, where they have data.

But on this particulary mesure, they dont all have data.

Not applicable
Author

But wildmatch be massive, I have 100s of customers? There must be an easier way?

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

     Then in your data model you can create a new field which is a customer who have the value for this measure.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
er_mohit
Master II
Master II

ok

then try this way

aggr(only({$<[FactQVTimeRegistered].TimeRegistered"={'>0'}>}[DimCustomer].CustomerName"),[DimCustomer].CustomerName")

Not applicable
Author

Thats true! But i there is a way in qlikview i would rather do it there. But thanks!

nizamsha
Specialist II
Specialist II

aggr(only( {<fieldname={'a','b','c'}>}fieldname),fieldname)