Qlik Community

New to QlikView

Discussion board where members can get started with QlikView.

Announcements
QlikWorld 2020: Join us May 11 - 14, 2020 in Phoenix, AZ. Register early and save $400. Learn More
Highlighted
Not applicable

Display/Hide chart expression based on condition

I have a line chart with one dimension and two expression.

I defined a variable for each one like below:

IsVisibleExpr1 and its value = True

IsVisibleExpr2 and its value = False

then in expression condition I assign below values:

* For expression 1: =IsVisibleExpr1

* For expression 2: =IsVisibleExpr2

Independently of the variables values, all expressions are displayed. Why for example expression 2 is displayed if its value IsVisibleExpr2 is false?

1 Solution

Accepted Solutions
Not applicable

Re: Display/Hide chart expression based on condition

Thanks for guide me in the right direction. I have solved it by assigning 1 or 0 to variables instead of True/False.

For example:

IsVisibleExpr1 and its value = 1

IsVisibleExpr2 and its value = 0

then in expression condition I assign below values:

* For expression 1: =IsVisibleExpr1

* For expression 2: =IsVisibleExpr2

View solution in original post

7 Replies
beck_bakytbek
Honored Contributor

Re: Display/Hide chart expression based on condition

Hi Tony,

see this Topic to your issue; QlikView Conditionally showing and hiding the filters / objects - YouTube

i hope that helps

beck

Employee
Employee

Re: Display/Hide chart expression based on condition

True/False are -1/0?

vinay_bangari
Valued Contributor III

Re: Display/Hide chart expression based on condition

These two zip files will help you. they have the solutions with examples. Also go through this discussion where you have other examples and learning stuff.

Qlikview Learning: General topics with Examples and Help Material

Re: Display/Hide chart expression based on condition

Can you share a sample of what you have?

Not applicable

Re: Display/Hide chart expression based on condition

Thanks for guide me in the right direction. I have solved it by assigning 1 or 0 to variables instead of True/False.

For example:

IsVisibleExpr1 and its value = 1

IsVisibleExpr2 and its value = 0

then in expression condition I assign below values:

* For expression 1: =IsVisibleExpr1

* For expression 2: =IsVisibleExpr2

View solution in original post

Not applicable

Re: Display/Hide chart expression based on condition

Thanks all by your suggestions and examples. I finally solved it by changing value from True/False to 1/0.

Employee
Employee

Re: Display/Hide chart expression based on condition

Remember that true/false in Qlikview are merely :

0 - false

anything <> 0 - true