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

Announcements
Now accepting applications for the Qlik Luminary and Partner Ambassador Programs: Apply by July 6!
cancel
Showing results for 
Search instead for 
Did you mean: 
Brunch
Contributor II
Contributor II

Conditional Formatting a Columns in QlikSense

Hopefully easy solution.  I have a table in Qlik Sense that I'm trying to format depending on the value in the cell.  ie, if the value is below 40, cell is red, if above, cell is green.

I loaded this expression but it just returns the green color.  any help is appreciated

=if(Column(G3_START_PLAN - Decision_Date) < 40,red (), green())

Labels (1)
1 Solution

Accepted Solutions
agigliotti
MVP
MVP

Hi @Brunch ,

As @Cascader said you should use column number if both of them are measures, else you can use the expression as below:

if( G3_START_PLAN - Decision_Date < 40, red(), green() )

I hope it can helps.

Best Regards

The Power of shining a light on the dark side of your data.
Follow me on my LinkedIn | Know Gamma Informatica at gammainformatica.it

View solution in original post

4 Replies
Cascader
Creator
Creator

try:

 if(Column(G3_START_PLAN) - Column(Decision_Date) < 40,red (), green())

not sure if Column function takes column name, I think it takes column number

 

agigliotti
MVP
MVP

Hi @Brunch ,

As @Cascader said you should use column number if both of them are measures, else you can use the expression as below:

if( G3_START_PLAN - Decision_Date < 40, red(), green() )

I hope it can helps.

Best Regards

The Power of shining a light on the dark side of your data.
Follow me on my LinkedIn | Know Gamma Informatica at gammainformatica.it
Brunch
Contributor II
Contributor II
Author

Ahmed, thanks for the reply.  I tried that and didn't work either.  I also tried just putting in the Column and get the same result.  I'm just trying to get the formatting in Column 10 to change color if the value is less than 40, etc.

=if(Column(10) < 40,red (), green())

Brunch_0-1693993352759.png

 

Brunch
Contributor II
Contributor II
Author

Oh wow that worked.  Thanks