Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

hide\unhide charts on certain field selection

Hi all,

how can I make a certain chart hidden the moment I make any selection on a certain field?

and then make it unhidden when any selections on this field are cleared.

Thanks,

Boris

5 Replies
bbi_mba_76
Partner - Specialist
Partner - Specialist

Hi,

you have to write an expression in show conditional in layout tab of the object.

In this expression use the GetSelectedCount

MayilVahanan

Hi

Try like this

Chart properties -> Layout -> Show conditional -> =GetSelectedCount(FieldName)

Hope it helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
MK_QSL
MVP
MVP

Please check enclosed file...

Layout 

Show

Conditional...

To see the chart, pls select any customer..

Not applicable
Author

Hi Boris,

Right click on teh chart, Properties--Layout tab, in "Show" section, you can click on radi button conditional and then write the condition on which you want your chart to be shown,

Layout.bmp

in your case it will be something like:

GetSelectedCOunt([Field Name]) =0

So, the chart will be shown when there are no selections in the field "Field Name".

Hope this helps!

Not applicable
Author

Hi,

I am trying to do the exact opposite. I want a chart to appear only when a user has select a single value within a given field. I was expecting the following to work:

"GetSelectedCOunt([Field Name]) <> 0"


But it doesn't seem to. I want it so that when a user has made a selection which is down to a group of records that all have the same distinct values in the field [fieldA] then it will show the graph, in all other situations it will remain hidden. Can anyone guide me?