Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
 
					
				
		
 paulyeo11
		
			paulyeo11
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Hi All
I have below expression work fine :-
Sum( {<eXP={eXP}>} Amount*-1/1000)
Below is the expression which i want to compute TOTAL for the above expression , IT Also work fine, as shown in table 1 :-
Sum(ALL {<eXP={eXP}>} Amount*-1/1000)
Now i have expression below , which convert all the currency to SGD:-
Sum( {<eXP={eXP}>} Amount*-1/1000)/Rate
when i modify the above expression with compute Total as below :-
Sum(ALL {<eXP={eXP}>} Amount*-1/1000)/Rate
it cannot work as shown in Table 2.
Can some one advise me ?
PAul
 
					
				
		
 settu_periasamy
		
			settu_periasamy
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		You can try this..
Sum(TOTAL Aggr(Sum( {<eXP={eXP}>} Amount*-1/1000)/Rate,SOURCE))
 
					
				
		
 paulyeo11
		
			paulyeo11
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		my QV Doc
 
					
				
		
 settu_periasamy
		
			settu_periasamy
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Hi Paul,
I think your expression seems to be working fine..
i separated the expression and gives the same result..

 
					
				
		
 paulyeo11
		
			paulyeo11
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Hi Settu
Thank you for your reply.

 
					
				
		
 settu_periasamy
		
			settu_periasamy
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		You can try this..
Sum(TOTAL Aggr(Sum( {<eXP={eXP}>} Amount*-1/1000)/Rate,SOURCE))
 
					
				
		
 paulyeo11
		
			paulyeo11
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		HI Settu
thank you very much
paul
 
					
				
		
try in this way
Sum(ALL {<eXP={eXP}>} (Amount*-1)/1000)/Rate
 
					
				
		
 paulyeo11
		
			paulyeo11
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Hi Gupta
I already got the solution , after add Aggr it work fine. As I am using V9 , this is the work around.
Paul
Sent from my iPhone
 
					
				
		
 paulyeo11
		
			paulyeo11
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Hi Gupta
Correct expression as below from Settu :-
Sum(TOTAL Aggr(Sum( {<eXP={eXP}>} Amount*-1/1000)/Rate,SOURCE))
