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

Text expression based on list box selection

Hi,

I have a list-box displaying months name (Month as dimension). I have a text object. Below is my ask.

If no month is selected from the list-box then the text object should be displayed as 'A' else it should display 'B'.

Thanks

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Use an expression in your text box like

=if(GetSelectedCount(Month),'B','A')

View solution in original post

2 Replies
swuehl
MVP
MVP

Use an expression in your text box like

=if(GetSelectedCount(Month),'B','A')

its_anandrjs
Champion III
Champion III

write a code in text box like

=if(GetSelectedCount(YourMonthField)=1 ,'B','A')