Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Conditional Object

Hello,

i want to hide a text if there are currently no selections in the worksheet. Can you please guide me? thanks.

7 Replies
Not applicable
Author

You could create a text object and go to properties>layout and create a conditional show:

=if(GetCurrentSelections() >1,1,0)

See below:

Screen Shot 2014-07-15 at 18.22.36.png

Hope that helps,

Matt

Not applicable
Author

Thanks Matthew,

just a follow up question, what if i wanted the text box to show based on a certain field and only when it is selected?

Not applicable
Author

You could use this:

=if(GetFieldSelections(YourField) >1,1,0)



Not applicable
Author

Thank you once again, this works great but i have to click on the value for that particular field. I have a bar chart and i would like it that soon as a user narrows the selection down to a single field the text box should show up.

Not applicable
Author

Ok, in that case this should work:


=if(GetCurrentSelections() >=1,1,0)


If not, don't hesitate to upload a qvw showing what you want, may be simpler way to get exactly what you need.


Matt

NZFei
Partner - Specialist
Partner - Specialist

=if(getpossiblecount(YourField)=1,1,0)

parthiband
Partner - Creator
Partner - Creator

Hi faisalac3,

Try closing the post, once ur problem got resolved.

It will be useful the one, who comes in and searches for the same question of yours

Thanks