Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
 
					
				
		
 paulyeo11
		
			paulyeo11
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Hi All
I need to PE and EPS and Current Ratio automatic give the coloring.
For example if user select APPLE and Google.
Make those higher value items row with Dark Blue and those with lower value Light Blue , so user can see the different , and know google stock is better then apple.
Paul
 shraddha_g
		
			shraddha_g
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Try this
if( expression = max(aggr(Expression,Dimension)) , rgb() ,
if(expression = min(aggr(Expression,Dimension)) , rgb() , white())
 
					
				
		
 paulyeo11
		
			paulyeo11
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		My QVF Doc
 shraddha_g
		
			shraddha_g
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		you can do it in color by expression by setting the range for particular expression or comparing 2 expressions and according to that give rgb value.
 
					
				
		
 paulyeo11
		
			paulyeo11
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Hi Shraddha
I cannot set the value range ( as the number keep vari ) , because i just want to compare which on is high value the color is Dark Blue , and lower value is light blue .
Paul
 shraddha_g
		
			shraddha_g
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		calculate max and min of the expression using AGGR() and then try to assign color.
 
					
				
		
 paulyeo11
		
			paulyeo11
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Hi Shraddha
Can you give me an example ?
Below is the Earning Per Share expression :-
Sum({<year = {$(=Max(if(getselectedcount(year)=0,2015,year))-0)}
,
month = {"<=$(=Max({<year={$(=Max(if(getselectedcount(year)=0,2015,year)))}, sales = {'*'}>} month))"}
>} EPS)
May i know how to modify the expression , change to AGGR and assign color ?
Paul
 shraddha_g
		
			shraddha_g
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Try this
if( expression = max(aggr(Expression,Dimension)) , rgb() ,
if(expression = min(aggr(Expression,Dimension)) , rgb() , white())
 
					
				
		
 paulyeo11
		
			paulyeo11
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Hi Shraddha
My expression below :-
Sum({<year = {$(=Max(if(getselectedcount(year)=0,2015,year))-0)}
,
month = {"<=$(=Max({<year={$(=Max(if(getselectedcount(year)=0,2015,year)))}, sales = {'*'}>} month))"}
>} EPS)
I replace by variable = $(vEPS) , it work fine .
if( expression = max(aggr(Expression,Dimension)) , rgb() ,
if(expression = min(aggr(Expression,Dimension)) , rgb() , white())
I apply into your recommendation expression above :-
if( =$(vEPS) = max(aggr(=$(vEPS),COMPETITOR_k)) , rgb() ,
if(=$(vEPS) = min(aggr(=$(vEPS),COMPETITOR_k)) , rgb() , white())
it display blank . any where i go wrong ?
Paul
 shraddha_g
		
			shraddha_g
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Try like this
if( $(vEPS) = max(aggr(=$(vEPS),COMPETITOR_k)) , rgb() ,
if($(vEPS) = min(aggr(=$(vEPS),COMPETITOR_k)) , rgb() , white())
 
					
				
		
 paulyeo11
		
			paulyeo11
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Hi shraddha
I have try , still display blank.
Paul
