Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
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())