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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Conditional Expressions with multiple conditions

Is it possible to show an Expression up on two conditions:

In a table I have a condition on an exspression saying "=mSalesAmount" where mSalesAmount is a variable. Hence, the expression is shown only when the variable equals 1. I would like to attached another condition to the expression (e.g. "=mSalesQty").

Is it possible to make a kind of "and" statement in the conditions? (e.g. "=and(mSalesAmount, mSalesQty)")

1 Solution

Accepted Solutions
Not applicable
Author

mSalesAmount = 1 and mSalesQty = 1 ?

View solution in original post

4 Replies
Not applicable
Author

mSalesAmount = 1 and mSalesQty = 1 ?

Not applicable
Author

Ok - that was easy 🙂

sujeetsingh
Master III
Master III

Hi Ihan,

So you want the expression as to be

=if(mSalesAmount =1 and mSalesQty =1,1,0)

This can be a way to get this .

Not applicable
Author

Hi Son of Sardar,

As Fantasamagoria suggested I can actually do it without the if()..