Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
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
Partner - Champion
Partner - Champion

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

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
Partner - Champion
Partner - Champion

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

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