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

show a name if a certain condition is fulfilled

I would like to show a text in the main page that is related to the fulfillment of a certain condition.

explained in words:

IF a certain value of a list box is 0, is showed a TEXT,

IF another value of a list box is 0, is showed another TEXT,

ELSE is showed another text.

Is ot possible??

thank you,

Giacomo

1 Solution

Accepted Solutions
CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

     Do you mean selected value?

     Create a text box with expression below

     =if(listboxField=0,Text,if(listboxField2=0,Text,AnotherText))

Celambarasan

View solution in original post

2 Replies
CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

     Do you mean selected value?

     Create a text box with expression below

     =if(listboxField=0,Text,if(listboxField2=0,Text,AnotherText))

Celambarasan

jjfabian
Partner - Creator III
Partner - Creator III

Hi Jack,

I'm assuming you want to show your text through a text object.

In this text object, on the layout tab, under "show" set show to conditional. Here you can make various settings, beginning with very simple ones all the way to more complex formulas.

Generally, a "0" in this field means "do not show" whereas a "1" means "show". So you could build an if statement around this. I would suggest using the getselectedcound function here. Each text object will need an own statement.

However, an actual if statement is not required for a conditional show to work.

For example: You could set your show condition for your first object to getselectedcount(dim1)=0, the second one to getselectedcount(dim2)=0 and so on.

Hope this helps you out,

Regards, Jakob