Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Conditional Show of the values in the list box based on the sheet selected?

Hi

I need to only specific values in the list box filter based on the Sheet selected. All values in the list box need not appear if these are not pertinent to the tab. Is there a way to do a conditional show based on the sheet selected?

5 Replies
anushree1
Specialist II
Specialist II

Hi,

Is this what you are looking for

effinty2112
Master
Master

Hi Sanjyot,

                         Add a listbox by left clicking on the screen and instead of selecting Select Fields ... , click New Sheet Object >> Text Box.

Instead of picking a field from the list go to the bottom of this list and select <Expression>. This will allow you to enter an expression that will define a calculated dimension.

This could be something as simple as an if statement such as:

=if([Product Group] = 'Shoe', [Product Code])

so if your sheet is all about shoes your list box will return the product code for shoes and not raincoats.

cheers

Andrew

Anonymous
Not applicable
Author

Hi Andrew

I have tried this approach but doesnt seem to work .in the list box i chose expression and entered the below expression using if condition

=if(GetActiveSheetId()='SH01',Application ='ABC')

I need to show specific applications when a particular tab is selected.

effinty2112
Master
Master

Try:

=if(GetActiveSheetId()='Document\SH01',Application ='ABC')


When you look at your sheet properties tab it might say SH01 but place a textbox on the sheet with expression

=GetActiveSheetid()


Cheers


Andrew

Anonymous
Not applicable
Author

Thanks..It worked to some extent but I am getting values 0,-1 in the list box. My expression for the list box is as below

=if(wildmatch(GetActiveSheetId(),'Document\SH01'),Application ='Erwin')

I get 2 values in the list box i.e. 0 and -1. When I select 0 table show all values other than 'Erwin' and when i click on -1 in the listbox it gives me the selection by Erwin