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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
JoseGarcia
Creator III
Creator III

Two dimensions on color expression condition

Hi all, 

Can anyone assist with the following:

I would like to combine two dimensions to apply a color expression.

=if(if(sum([gg_availability])<17, RGB(249,63,23), RGB(70,198,70),),

if(sum([mn_availability])<23, RGB(249,63,23), RGB(70,198,70),))

this syntax is giving me error.

Thanks all.

 

Regards

Jose

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar

May be this

=If(Sum([gg_availability]) < 17 or Sum([mn_availability]) < 23, RGB(249,63,23), RGB(70,198,70))

If it is an AND condition, then this

=If(Sum([gg_availability]) < 17 and Sum([mn_availability]) < 23, RGB(249,63,23), RGB(70,198,70))

 

View solution in original post

2 Replies
sunny_talwar

May be this

=If(Sum([gg_availability]) < 17 or Sum([mn_availability]) < 23, RGB(249,63,23), RGB(70,198,70))

If it is an AND condition, then this

=If(Sum([gg_availability]) < 17 and Sum([mn_availability]) < 23, RGB(249,63,23), RGB(70,198,70))

 

JoseGarcia
Creator III
Creator III
Author

First Syntax worked!

thanks a million Sunny!

Really appreciate your help as always! 🙂

regards

Jose