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

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Selection

Hello!

If I have a listbox that have some options, which can then be displayed in a few different charts. But if I do not make any selections in the listbox, I do not want it to appear some lines i the chart. Is it possible to get to do it so that there is no lines i the diagrams from the begining?

3 Replies
gandalfgray
Specialist II
Specialist II

One way is to check "Conditional" in the expression tab of the chart properties and then add:

Len(GetFieldSelections(fieldname))>0

as condition

(fieldname is the name of the field in your listbox)

Not applicable
Author

Hello again!

Thanks for this, but if I make a selection in one of my list boxes so nothing happens, it just says "conditions for calculation are not met" and it may not be right, for it if I do not make a selection, it should read something like that. But if I do any of my choices, then it should come up numbers?

MayilVahanan

HI

Some line or all line in the chart?

if all line means, use calculation condition in general tab. for some expresssion means, use conditional in expression tab.

Try like this

=GetSelectedCount(FieldName)

PFA

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