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

Announcements
Write Table now available in Qlik Cloud Analytics: Read Blog
cancel
Showing results for 
Search instead for 
Did you mean: 
Bdasilva
Contributor
Contributor

Conditional formatting based on percentile

Forgive me as I am new to Qlik. I trying to perform conditional formatting on a Qlik pivot table based on percentile for a 3 color gradient. 

 

Bdasilva_0-1673629279552.png

 

How does one write the expression to perform this in Qlik Sense? 

Attached is sample data. 

 

Labels (4)
1 Reply
KGalloway
Creator II
Creator II

I don't think you can apply a spectrum of color in a pivot table. You can use a nested if statement in the background color to get close to what you want:

KGalloway_0-1673647352743.png

The expression I used is if(Sum(value2) > .90, green(), if(Sum(value2) > .70, yellow(), red()))

This is possible in a bar chart (and possible other visualizations). You can color by measure and customize from there:

KGalloway_1-1673647519004.png