Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Providing more than one condition in Layout

Is there a way to provide two conditions in layout? I have a grid which I want to show only if two conditions are fulfilled. I provided the condition in the layout tab as "=Value=1 and vDetailId=2" but this is not working out.

Thanks in Advance

1 Solution

Accepted Solutions
jonathandienst
Partner - Champion III
Partner - Champion III

Hi

Your condition looks OK, but you could also try

=If(Value = 1 And vDetailId = 2, true(), false())

Hope this helps

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein

View solution in original post

4 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

Hi

Your condition looks OK, but you could also try

=If(Value = 1 And vDetailId = 2, true(), false())

Hope this helps

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
SunilChauhan
Champion
Champion

no need to write in double quotes (" ")

use below instead

=Value=1 and vDetailId=2

Sunil Chauhan
its_anandrjs

Hi,

You have to write in Chart -> Properties -> Layout -> Conditional

and paste a code there

If( Value = 1 And vDetailId = 2 , 1, 0)

And try to set different value for variables Value and vDetailId but it works only when it is 1 and 2

See the attached sample file.

Rgds

Anand

Not applicable
Author

Thanks !!!   This worked like magic