Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
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
Author

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
Master
Master

Hi Tony,

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

i hope that helps

beck

Clever_Anjos
Employee
Employee

True/False are -1/0?

Anonymous
Not applicable
Author

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

sunny_talwar

Can you share a sample of what you have?

Not applicable
Author

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

Not applicable
Author

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

Clever_Anjos
Employee
Employee

Remember that true/false in Qlikview are merely :

0 - false

anything <> 0 - true