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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
dia2021
Creator
Creator

Pivot table cell background color based on conditional formatting

Hi All,

Is it possible to set up the background color in the pivot table, for example

I want the cell background color to turn green when it's 100% and Gray when it's 0%. How can I achieve this?

Labels (2)
2 Solutions

Accepted Solutions
Sweta_Sharma
Former Employee
Former Employee

Hi @dia2021 ,

You can achieve this by using expression for background color-
Edit sheet>> Data>> Dimension/ Measure>> Set 'Background color expression' if(Value=100, Green(), rgb(128, 128, 128))

Cheers!

If the issue is solved please mark the answer with Accept as Solution

View solution in original post

dia2021
Creator
Creator
Author

 

@Sweta_Sharma  Your expression is correct. I found a bug in the app that was not accepting value 0.01 for 100% but it worked with condition  >0.99. Thanks!

 

View solution in original post

3 Replies
Sweta_Sharma
Former Employee
Former Employee

Hi @dia2021 ,

You can achieve this by using expression for background color-
Edit sheet>> Data>> Dimension/ Measure>> Set 'Background color expression' if(Value=100, Green(), rgb(128, 128, 128))

Cheers!

If the issue is solved please mark the answer with Accept as Solution
dia2021
Creator
Creator
Author

Hi Sweta,

Thanks for your reply. I set up on measure background expression, but its applying on the whole table rather than on the cell that contains values 100%

dia2021
Creator
Creator
Author

 

@Sweta_Sharma  Your expression is correct. I found a bug in the app that was not accepting value 0.01 for 100% but it worked with condition  >0.99. Thanks!