Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
 
					
				
		
TableA:
LOAD A,
PRICE
FROM
somewhere
TableB:
LOAB B,
IF(LEN(A)='5', LOOKUP('PRICE', 'A', LEFT(B, 5), 'TableA', LOOKUP('PRICE', 'A', LEFT(B, 9), 'TableA')) AS NEW_PRICE
FROM
somewhere
How can I do 2 different lookups as shown in TableB base on the length of a field A in TableA? Any help appreciated!!!!
 sunny_talwar
		
			sunny_talwar
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Would you be able to share some sample data and explain what the desired output is from that sample?
 
					
				
		
Hi
Take a look at mapping tabels and ApplyMap in help.qlik.com
