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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Legend in chart

Hi,

How knows how to show in legend my selection.

I have list box, where I select A. I want to show A in legend.

Thanks,

Labels (1)
1 Solution

Accepted Solutions
MayilVahanan
MVP
MVP

Hi

     Try like this, GetFieldSelections(Fieldname)

Hope it helps

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

View solution in original post

6 Replies
MayilVahanan
MVP
MVP

Hi

     Try like this, GetFieldSelections(Fieldname)

Hope it helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Anonymous
Not applicable
Author

Thanks for your help.

The issue was so easy.

I have another question. If I didn't select anything, it show me - in legend.

I tried using conditional for expression like GetFieldSelections(Fieldname)>0, doesn't work.

Could you help me?

Thanks again,

MayilVahanan
MVP
MVP

HI

     Use GetSelectedCount(Fieldname)>0 , Hope it helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Anonymous
Not applicable
Author

super!!!!

Thank so much,

Not applicable
Author

can you please tell me where i have to enter this expression...

GetSelectedCount(Fieldname)>0


to hide the legends

Not applicable
Author

Hi there, you put it in the conditional box under the expressions tab. By default it will be Show -> Always...Dan