Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
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 II
Champion II

no need to write in double quotes (" ")

use below instead

=Value=1 and vDetailId=2

Sunil Chauhan
its_anandrjs
Champion III
Champion III

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