Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
 MiguelHathaway
		
			MiguelHathaway
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Hi, i'm New at Qlikview, and i'm trying to simplify my code but i can't do it.For example this is my code when I load information from an excel source.
Load
Period,
[Company Code] as [CC],
Amount,
Amount * -1 as [Negative Amount],
[Negative Amount] /1000 as [Neg Amount in miles]
The code write with Bold, doesn't work, probably because "[Negative Amount]" it's not recognized from the source of the excel. But I need it to work, cause i'm on more complex formulas, and I need them to look easy to understand.
Pleasee help,
 vchuprina
		
			vchuprina
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Hi,
Try this:
Load *,
[Negative Amount] /1000 as [Neg Amount in miles];
Load
Period,
[Company Code] as [CC],
Amount,
Amount * -1 as [Negative Amount] 
From your excel;
Regards,
Vitalii
 NitinK7
		
			NitinK7
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Hi,
Try this:
Load
Period,
[Company Code] as [CC],
Amount,
Amount * -1 as [Negative Amount],
(Amount * -1)/1000 as [Neg Amount in miles];
From your excel;
