Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
 
					
				
		
Hi,
Now that the Lookup() function is gone, how do I do an easy lookup?
| Unique ID | ColA | ColB | ColC | 
|---|---|---|---|
| 1 | xxx | yyy | zzz | 
| 2 | rrr | sss | ttt | 
| 3 | uuu | vvv | www | 
Say I have id=2 and col='ColC'. How do I get to 'ttt' now without creating millions of mapping tables?
Thanks!
 
					
				
		
 IAMDV
		
			IAMDV
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		 anbu1984
		
			anbu1984
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Try this
If(id=2,pick(match(col,'ColA','ColB','ColC'),ColA,ColB,ColC))
 rbecher
		
			rbecher
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Hi (number),
why not just using QlikView's Lookup() function?
- Ralf
 
					
				
		
Because I don't think Lookup exists anymore in my version?
Thanks!
Oli
 
					
				
		
That's just hardcoding it... What if id=24343 and col=ColXY?
 rbecher
		
			rbecher
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Why? Which version?
 
					
				
		
As far as I know the lookup function still exists?
 
					
				
		
QV11... Doesn't come up!

Thanks
Oli
 
					
				
		
See above...
 
					
				
		
That's actually really strange, I can see it in my help menu but I see the same problem you do...
