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 limit values of list box

Hi All,

I have 3 values for REGION column. Let values are A,B,C and corresponding sub-regions for 3 regions.in dashboard

I need to display only region A in list box of REGION and corresponding sub-regions of A in Sub-region filter list box.

how I should write a calculated dimension to display only A in REGION filter(listbox) and corresponding Sub-region of A in Sub-region

filter(list box).

Thanks in advance......

15 Replies
alexandros17
Partner - Champion III
Partner - Champion III

Write in both list boxes

if (Region = 'A', Region, null())

Not applicable
Author


how I can write for subregion....

aveeeeeee7en
Specialist III
Specialist III

Create 2 new fields in the Edit Script:

eg.

If(Wildmatch(REGION,'A',REGION) AS [Dashboard REGION]

If(Wildmatch(REGION,'A',SUBREGION) AS [Dashboard SUBREGION]

After Writing this in the Script Reload the Application, you'll get the desired Result and later you use these 2 fields in your Dashboard.

Regards

Aviral Nag

MayilVahanan

HI

Try like this

=If(REGION = 'A', REGION ) // region filter

=If(REGION = 'A', Sub-region) // subregion filter

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
rustyfishbones
Master II
Master II

IF(MATCH(REGION, 'A'),REGION)

Not applicable
Author

only({<Region = {'A'}>}Region)

and for sub-Region

only({<Region = {'A'}>}SubRegion)

and to write this in a listbox you have to chosse instead of a field all the way on the bottom something called formular should show up or calcualted (im not using QV in English so I'm not sure what it exactly says)

regards,

MT

Not applicable
Author

region-A,B,C.

Sub-region-E,F,G,H,I,J,K,L

where Sub-region E,F,G belongs to A

Sub-region H,I belongs to B

Sub-region J,K,L belongs to C.

I don't want to Hard-code Sub-region.because in future Sub-region may increases.

so I want dynamic expression to get only sub-regions belongs to A in aListbox


Not applicable
Author

yes you can do it like this

only({<Region = {'A'}>}SubRegion)

it is like you would select Region A in a listbox and then all the subregions for A would be shown.

regards,

MT

Not applicable
Author

thanks a lot Tammegger

what I need is I want to display only sub-regions of 'A' by default

with out selecting region-'A' .