Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
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,

1 Solution

Accepted Solutions
MayilVahanan

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

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

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