Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
 
					
				
		
Hi All,
I need to get the max values from multiple columns and want to do this in script.
e.g I have having below columns Col1 to Col4. I want to get another column as MaxValue in the script itself. Please advise
| Col1 | Col2 | Col3 | Col4 | MaxValue | 
| 1 | 3 | 4 | 10 | 10 | 
| 2 | 2 | 22 | 4 | 22 | 
| 2 | 2 | 3 | 32 | 32 | 
Thanks,
Sijo
 
					
				
		
 alexandros17
		
			alexandros17
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Here it is an example
 
					
				
		
 rajeshvaswani77
		
			rajeshvaswani77
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Preceding load and then if conditions will do the trick.
regards,
Rajesh Vaswani
 
					
				
		
 alexandros17
		
			alexandros17
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Here it is an example
 julian_rodrigue
		
			julian_rodrigueHello Sijo
Try this:
MyData:
LOAD
Col1,
Col2,
Col3,
Col4,
RangeMax(Col1, Col2, Col3, Col4) AS MaxValue
FROM
MyData.xls
 
					
				
		
Thanks
 
					
				
		
Thanks Rajesh
 
					
				
		
thnaks
