Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
 lmenendez_grupo
		
			lmenendez_grupoHi every body,
I wonder is someone have a little exemple of using a for-next loop using a list of values instead a correlative numbers.
for exemple I need the variable 'n' takes the values 'ACG' , next 'BPJ', next 'HJP'...
Thanks
 
					
				
		
.png) hic
		
			hic
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		For each n in 'ACG' , 'BPJ',  'HJP'
...
Next n
See more on https://community.qlik.com/t5/Qlik-Design-Blog/Loops-in-the-Script/ba-p/1473543
 
					
				
		
.png) hic
		
			hic
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		For each n in 'ACG' , 'BPJ',  'HJP'
...
Next n
See more on https://community.qlik.com/t5/Qlik-Design-Blog/Loops-in-the-Script/ba-p/1473543
 lmenendez_grupo
		
			lmenendez_grupoThank you Henric,
do you know the sintaxis to avoid "Field not found error Field 'ICO' not found"
in this script?
FOR EACH EMP IN 'ICO','HJP'
temp:
LOAD 
$(EMP) AS EMPRESA,
...
 lmenendez_grupo
		
			lmenendez_grupoSorry I see the solution in your bolg '$(EMP)' AS EMPRESA.
Thank you very much
