22 Replies Latest reply: Aug 22, 2012 8:48 AM by Romina Villa

Highlight max and min values in pivot table

Hi all!

I have a Pivot Table with many dimensions and one expression. Is it possible to highlight the cells that contain max and min expression values, depending on the current aggregations?

Kindest Regards.

• Re: Highlight max and min values in pivot table

Hi,

Write some thing like this in background properties of the expressions by click on plus sign.

If( Sum(Sales) = Max(Sales) ,Yellow(),

If( Sum(Sales) = Min(Sales) ,Green() ))

Rgds

Anand

• Highlight max and min values in pivot table

No, it doesn't works. Your example draws all the cells with a yellow background.

• Highlight max and min values in pivot table

Hi,

Can you share any sample file it goes so easy.

Rgds

Anand

• Highlight max and min values in pivot table

1.go to chart properties of pivot table and go to tab visual cues.

2.select expression and give upper limit and lower limit.

3.Then the values between upper and lower limit will be highlighted.

try it out.

regards

• Highlight max and min values in pivot table

You can do one more thing..

Go in the visual cues tab....Here yo u will find the Upper and Lower Value....you can fix the color according to your reqirement

• Re: Highlight max and min values in pivot table

I have the same question. But I ordered the values ascendant by this expression:

min(aggr(count(Field), Dimension 1, Dimension 2))

But doesn't order. I want min values on the top of the table so I can highlight them and the max values down.

• Re: Highlight max and min values in pivot table

Hi,

Write some thing like this in background properties of the expressions by click on plus sign.

If( Sum(Sales) = Max(Sales) OR Sum(Sales) = Min(Sales) ,Yellow())

Hope this helps!

Thanks,

Attitude

• Re: Highlight max and min values in pivot table

If( Sum(Sales) = Max(Sales) OR Sum(Sales) = Min(Sales) ,Yellow()) doesn't work.

This is the example. I want max and min values by Field2.

• Re: Highlight max and min values in pivot table

Hi, try:

If(sum(Aggr(Sum(Data),Field2))=max(Aggr(sum(Data),Field2)), yellow())

In background expression.

• Re: Highlight max and min values in pivot table

If you invert the order of fields, you must use Field1 instead of Field2.

If you add more dimentions, use the one that is in horizontal axis.

• Re: Highlight max and min values in pivot table

Hi all,

we have a pivot table with these dimensions

Week (Settimana)

Data (Date)

Ora (Hour)

Expresssion: QtaPasseggeri (quantity of passengers)

with espression sum(QtaPasseggeri) and expression name "Passeggeri".

The solution for this problem is to set this expression in Background Color

if([Passeggeri]=max(total aggr(sum(QtaPasseggeri), Settimana, Data, Ore),1), rgb(255,0,0),

if([Passeggeri]=max(total aggr(sum(QtaPasseggeri), Settimana, Data, Ore),2), rgb(200,0,0),

if([Passeggeri]=max(total aggr(sum(QtaPasseggeri), Settimana, Data, Ore),3), red(),

IF([Passeggeri]>800,

RGB(0,0,128),

IF([Passeggeri]>400 AND [Passeggeri]<800,

RGB(0,204,255),

IF([Passeggeri]>200 AND [Passeggeri]<400, RGB(204, 255, 255))

)

)

)

)

)

Regards

Luca Jonathan Panetta

PLJ Software

• Re: Highlight max and min values in pivot table

Are you kidding me? You used my solution and you mark as answered to yourself?

Very ungrateful...

• Re: Highlight max and min values in pivot table

Sorry, but this solution is the solution that I have found afther my original post.

Only I don't remeber the post and I haven't post the solution.

Luca Jonathan Panetta

PLJ Software

• Re: Highlight max and min values in pivot table

That expression doesn't mark the max values. You see, 12454 is less than 68732 in the column b.

• Re: Highlight max and min values in pivot table

Dejalo Romina, si después se marca como respondido a él mismo...

• Re: Highlight max and min values in pivot table

Sebastian,

me duele mucho que piensas que me marco la respuesta como correcta simplemente por agarrar puntos. Esta es la solución que ultilize por solucionar mi problema.

Si lo deseas puedo mandarte uno scheenshot de mi trabajo que si miras la data del post es de 8 noviembre 2011 y la solución es del 9 o 10 como mucho.

Lo siento mucho no haber contestato antes a esta mi misma pregunta pero me había olvidado de su existencia.

Marco también tu respuesta como correcta ya que la pusiste antes de mí.

PS: No pensar que ya que soy italiano hablo sólo inglés.

Saludos

Luca Jonathan Panetta

PLJ Software

• Re: Highlight max and min values in pivot table

Hello Romina,

I don't know the test file, I can say you that my expression work fine in my job.

Sebastians's solution is the same of my solution but in my case I have more Max to mark.

Regards

Luca Jonathan Panetta

PLJ Software

• Re: Highlight max and min values in pivot table

Luca, lo mismo dije antes en Inglés, no me acuses que subestimar tu capacidad de lenguaje porque no fue lo que quise hacer. Si así se entendió, te pido disculpas.

Saludos,

Sebastián.

• Re: Highlight max and min values in pivot table

Thanks both of you, but... There is another solution for this question?

In the file that Sebastián posts, you can see that expression doesn't mark the max. I don't know why, 'cause looks fine and logic, but it doesn't. Also for the min function, marks the same values that the max function.

Regards.

• Re: Highlight max and min values in pivot table

Sorry, I made a mistake with no test the solution provided.

This works properly:

If(Sum(Data)=max(Total <Field2>Data),

yellow(),

If(Sum(Data)=min(Total <Field2>Data),

Green()))

• Re: Highlight max and min values in pivot table

Thanks you so much, that works!

Regards,

Romina.