Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
dmoreno2605
Contributor III
Contributor III

Coloring the Max and Min Values in Pivot Table Rows with Multiple Dimensions

Hi everyone, i need your wisdom, i have the following table:

PuestoMenos de 3 meses3 a 6 meses6 a 12 meses1 a 2 años2 a 3 añosMas de 3 años
Chofer39141824114
Gerente de Distrito214633
Gerente de distrito en formacion010000
Gestor Cobranza10162041204
Gestor Ventas10271639122
MGRNTRN452100
MIT220010
MSTRMGR12313421815
Rep Cobranza91606949141
Rep Ventas89576853141
Total2591862102559330
Total %25.07%18.01%20.33%24.69%9.00%2.90%

 

I need to color the max value as green and the min value as red of each row, the problem is when i have two max values or two min values, in those situations it will not color, how can i color both or choose one to color? Any ideas?

Thanks!

Labels (2)
1 Solution

Accepted Solutions
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

When you have a tie, your > or < test will never be try.  So change your operators to >= and <=.

Also, you could write more compact using RangeMax:

if(column(2) >= RangeMax(column(1), column(3),...)

View solution in original post

3 Replies
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

Are you using a color expression?  If so, can you post it?

-Rob

dmoreno2605
Contributor III
Contributor III
Author

Sorry i took my time
i;m using this for each column
if(Column(2)>Column(1) and
Column(2)>Column(3) and
Column(2)>Column(4) and
Column(2)>Column(5) and
Column(2)>Column(6),Green(),
if(Column(2)<Column(1) and
Column(2)<Column(3) and
Column(2)<Column(4) and
Column(2)<Column(5) and
Column(2)<Column(6),rgb(255, 0, 0)))

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

When you have a tie, your > or < test will never be try.  So change your operators to >= and <=.

Also, you could write more compact using RangeMax:

if(column(2) >= RangeMax(column(1), column(3),...)