Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
ahammadshafi
Creator
Creator

Show/hide multiple tables based on selection

Dear Experts:

Please note, there are four tables in my app - 1. Sales, 2. Budget, 3. Forecast I and 4. Forecast II

Show_Hide1.PNG

I have to show them based on selection from "Type" List Box and to do that I have set condition in "Layout" tab like the following

Show_Hide3.PNG

Now the app shows the tables accordingly.

Show_Hide2.PNG

But if I select multiple items from the list box all the tables disappear.

Show_Hide4.PNG

According to client requirement, in the given scenario Sales and Budget tables need to be shown.

Looking forward to your suggestions.

Ahammad Shafi

1 Solution

Accepted Solutions
jonathandienst
Partner - Champion III
Partner - Champion III

Add a delimiter like a pipe |, so that you can distinguish these:

=WildMatch('|'& Concat(Type, '|') & '|', '*|Act|*')

=WildMatch('|'& Concat(Type, '|') & '|', '*|Forecast I|*')

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein

View solution in original post

6 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

Use a conditions like:

=WildMatch(Concat(Type), '*Act*')

=WildMatch(Concat(Type), '*Bud*')

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Chanty4u
MVP
MVP

try something lik below

=if(

(GetFieldSelections ([filed])='no'

or GetSelectedCount([YourFlag])=0

or GetSelectedCount([YourFlag])=2

)

,Expression1

,Expression2

)

Chanty4u
MVP
MVP

or

=GetSelectedCount(filed)=1

=GetSelectedCount(filed)='value';

ahammadshafi
Creator
Creator
Author

Hi Jonathan:

Many thanks, it works fine with one exception - when I select "Forecast II" it shows two tables (Forecast I and Forecast II).

Show_Hide5.PNG

The condition I have set in "Forecast I" table is  "=WildMatch(Concat(Type),'*Forecast I*')"

                                and in "Forecast II" table is "=WildMatch(Concat(Type), '*Forecast II*')"

jonathandienst
Partner - Champion III
Partner - Champion III

Add a delimiter like a pipe |, so that you can distinguish these:

=WildMatch('|'& Concat(Type, '|') & '|', '*|Act|*')

=WildMatch('|'& Concat(Type, '|') & '|', '*|Forecast I|*')

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
ahammadshafi
Creator
Creator
Author

Many thanks to both of you. Got it resolved