Skip to main content
Announcements
Introducing a new Enhanced File Management feature in Qlik Cloud! GET THE DETAILS!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Removing/Showing a line in a line chart based on conditions

Hi

I have a line chart in a QlikView document. Please find below the image.

linechart1.png

If you look at the green Total line, this has been set in the 'Dimension Limits' tab in properties.

I want to be able to have an option to either remove or show the Total line when a user presses a button. So when a user presses the button, the Total line appears and when the user selects it again, it disappears.

Is there a way which I can do this?

Thanks

1 Reply
MK_QSL
MVP
MVP

Create a variable

vShow and set value as 1

Now for this line...

write a conditional show as vShow = 1

Create a button

Select Actions

Add

External

Set Variable

Type vShow in variable

type if(vShow = 1 , 0 , 1) in value