Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Mask and unmask a chart line

 

Hi,

in a chart there is a bar and a line chart. I want to masked/unmasked the line chart (red line) with a button. Have anyone an idea?

 

Regards Stefan

 

3 Replies
marcus_sommer

Maybe with a condition on the dimension/expression in form from a variable controlled by this button or perhaps with a expression checking which fields are selected - per getcurrentselection(), getfieldselections(), getselectedcount().

- Marcus

Not applicable
Author

Try using a variable that's set by the button, and in your expression for the line,  checks the value of the variable

if(vShowLine>0,Sum(sales),0)

If vShowLine=1 then

     show line

Else

  set value to 0

MarcoWedel

Hi,

one example of the already proposed "button/variable/conditional expression" -solution could be:

QlikCommunity_Thread_197099_Pic1.JPG

QlikCommunity_Thread_197099_Pic2.JPG

QlikCommunity_Thread_197099_Pic3.JPG

QlikCommunity_Thread_197099_Pic4.JPG

QlikCommunity_Thread_197099_Pic5.JPG

hope this helps

regards

Marco