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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
claudialet
Contributor III
Contributor III

Combine 2 conditional expression into one ?

 

 

Here are my expressions :

= If(Only({<Date={"$(=max(Date))"}, Name = {'*cap*'}>} amount) > 5.5 ,  Green(),Red(),

 If(Only({<Date={"$(=max(Date))"}, Name =  {'*'}- {'*cap*'}>} amount) > 7.5 ,  Green(),Red()))

 

How can I combine them without using and, or  , +  ?

1 Solution

Accepted Solutions
Lauri
Specialist
Specialist

You could create a complicated set expression that encompasses both, but I wouldn't recommend that. Why are you against using OR?

= If(Only({<Date={"$(=max(Date))"}, Name = {'*cap*'}>} amount) > 5.5 Or Only({<Date={"$(=max(Date))"}, Name =  {'*'}- {'*cap*'}>} amount) > 7.5,  Green(),Red())

View solution in original post

1 Reply
Lauri
Specialist
Specialist

You could create a complicated set expression that encompasses both, but I wouldn't recommend that. Why are you against using OR?

= If(Only({<Date={"$(=max(Date))"}, Name = {'*cap*'}>} amount) > 5.5 Or Only({<Date={"$(=max(Date))"}, Name =  {'*'}- {'*cap*'}>} amount) > 7.5,  Green(),Red())