Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
mightyqlikers
Creator III
Creator III

Color coding based on rank in pivot table

Dear team,

please find the attached.

and in that i want to give the color of max 2 of sum(perc) green and min 2 of sum(perc) as red as per the rank.

for example in CA column rank 1&2 should get green and 4&5 should get red like wise for all the columns.

please help        

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Maybe use a background color attribute expression like

=If(

rank(total if(sum(PERC) <> '0',sum(PERC))) <= 2,LightGreen(),

If(rank(total if(sum(PERC) <> '0',-sum(PERC))) <=2 , lightred())

)

View solution in original post

2 Replies
swuehl
MVP
MVP

Maybe use a background color attribute expression like

=If(

rank(total if(sum(PERC) <> '0',sum(PERC))) <= 2,LightGreen(),

If(rank(total if(sum(PERC) <> '0',-sum(PERC))) <=2 , lightred())

)

mightyqlikers
Creator III
Creator III
Author

Perfecto  stephen.

Thank you.