Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
 
					
				
		
 paulyeo11
		
			paulyeo11
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Hi
Below expression work fine :-
=NUM(
count(distinct(if(inv>'800000' and inv<'899999' and CYTD,inv)))
-
count(distinct(if(inv>'800000' and inv<'899999' and LY_YTD_Flag,inv)))
)
/
count(distinct(if(inv>'800000' and inv<'899999' and LY_YTD_Flag,inv)))
it display as -0.155 , May i know how to make it display -15.5% ?
I try below it does not work :-
=NUM(
count(distinct(if(inv>'800000' and inv<'899999' and CYTD,inv)))
-
count(distinct(if(inv>'800000' and inv<'899999' and LY_YTD_Flag,inv)))
)
/
count(distinct(if(inv>'800000' and inv<'899999' and LY_YTD_Flag,inv)))
, '#.#%') &
Hope some one can advise me.
Paul
 sunny_talwar
		
			sunny_talwar
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Try this:
=NUM(
(count(distinct(if(inv>'800000' and inv<'899999' and CYTD,inv)))
-
count(distinct(if(inv>'800000' and inv<'899999' and LY_YTD_Flag,inv))))
/
count(distinct(if(inv>'800000' and inv<'899999' and LY_YTD_Flag,inv))), '##.0%')
 sunny_talwar
		
			sunny_talwar
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		May be this:
=NUM(
count(distinct(if(inv>'800000' and inv<'899999' and CYTD,inv)))
-
count(distinct(if(inv>'800000' and inv<'899999' and LY_YTD_Flag,inv)))
)
/
count(distinct(if(inv>'800000' and inv<'899999' and LY_YTD_Flag,inv)), '##.0%')
or
=NUM(
count(distinct(if(inv>'800000' and inv<'899999' and CYTD,inv)))
-
count(distinct(if(inv>'800000' and inv<'899999' and LY_YTD_Flag,inv)))
)
/
count(distinct(if(inv>'800000' and inv<'899999' and LY_YTD_Flag,inv)) * 100, '##.0') & '%'
 
					
				
		
 paulyeo11
		
			paulyeo11
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Hi Sunny
I have try both your expression , it display null , it does not able to convert -0.3125 to %. ( I have reload to smaller file now the value have change from -0.155 tp -0.3125 )
Enclosed my QVW file.
Paul
 sunny_talwar
		
			sunny_talwar
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Try this:
=NUM(
(count(distinct(if(inv>'800000' and inv<'899999' and CYTD,inv)))
-
count(distinct(if(inv>'800000' and inv<'899999' and LY_YTD_Flag,inv))))
/
count(distinct(if(inv>'800000' and inv<'899999' and LY_YTD_Flag,inv))), '##.0%')
 
					
				
		
 migueldelval
		
			migueldelval
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		 !Hi Paul,
!Hi Paul,
Try it
Regards
Miguel del Valle
 
					
				
		
 paulyeo11
		
			paulyeo11
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Hi All
Thank you both Sunny & Miguel help , now work fine.
Paul
