Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
 
					
				
		
 pljsoftware
		
			pljsoftware
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		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.
 
					
				
		
 sebastiandperei
		
			sebastiandperei
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Hi, try:
If(sum(Aggr(Sum(Data),Field2))=max(Aggr(sum(Data),Field2)), yellow())
In background expression.
 
					
				
		
 sebastiandperei
		
			sebastiandperei
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		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.
 
					
				
		
 pljsoftware
		
			pljsoftware
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		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
 
					
				
		
 sebastiandperei
		
			sebastiandperei
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Are you kidding me? You used my solution and you mark as answered to yourself?
Very ungrateful...
 
					
				
		
That expression doesn't mark the max values. You see, 12454 is less than 68732 in the column b.
 
					
				
		
 sebastiandperei
		
			sebastiandperei
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Dejalo Romina, si después se marca como respondido a él mismo...
 
					
				
		
 pljsoftware
		
			pljsoftware
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		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
 
					
				
		
 pljsoftware
		
			pljsoftware
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		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
 
					
				
		
 pljsoftware
		
			pljsoftware
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		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
 
					
				
		
 sebastiandperei
		
			sebastiandperei
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		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.
Por otro lado, me parece bien que hayas encontrado la solución.
Saludos,
Sebastián.
