Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
jblomqvist
Specialist
Specialist

How to hide a Text Object in front of a Chart until a field selection is made?

Hi all,

I have the following screenshot:

You can see the chart behind the text object.

Using the Grid option I have sent the Chart back and bought the Text Object forward (which has a low gradient).

I would like to hide the text object when someone makes only 1 selection in the CategoryName field and show the chart instead.

So I thought my Show Condition for the Text Object would be: GetFieldSelections(CategoryName)<>1

But this does not work. The chart remains in the background and the text object does not go away.

Does anyone know how to make this technique work please?

1 Solution

Accepted Solutions
sunny_talwar

Can you select Ctrl + Shift + S to see if this helps

View solution in original post

13 Replies
swuehl
MVP
MVP

Try

GetSelectedCount() instead of GetFieldSelections()

sunny_talwar

May be this:

GetSelectedCount(CategoryName) <> 1

jblomqvist
Specialist
Specialist
Author

Hi Stefan and Sunny,

I will use that!

But the text object still shows in front of the chart! Do I need to change any other configurations?

pgrenier
Partner - Creator III
Partner - Creator III

Hello John,

Under your textbox properties, go to the Layout Tab, click on Show: Conditional and insert either one of the following expressions:

Count(CategoryName) <> Count({1} CategoryName)

or

GetSelectedCount(CategoryName) = 0

Cheers,

Philippe

sunny_talwar

Are you sure there is only one text box? May be accidently added more than one text box object and did not delete the extra one. Can you check the conditional show statement on the expression tab for this one that is still showing?

jblomqvist
Specialist
Specialist
Author

Hi Sunny,

Yes I checked it there is no other text object in front of the chart.

I did send the chart back and bought the text object forward. Can that affect it?

sunny_talwar

What is the conditional expression for this object on the layout tab? Do you see this or not?

=GetSelectedCount(CategoryName) <> 1

jblomqvist
Specialist
Specialist
Author

Hi Sunny,

Yes I even did it with Hello text below:

Do you maybe have a sample app where it works? I can compare then.

swuehl
MVP
MVP

What is

=GetSelectedCount( CategoryName )

returning in a text box?