
Contributor III
2022-03-09
05:32 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
for ... next with a list of values
Hi 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
1,171 Views
1 Solution
Accepted Solutions

.png)
Former Employee
2022-03-09
05:52 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
1,160 Views
3 Replies

.png)
Former Employee
2022-03-09
05:52 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
1,161 Views

Contributor III
2022-03-09
06:17 AM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank 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,
...

Contributor III
2022-03-09
06:23 AM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sorry I see the solution in your bolg '$(EMP)' AS EMPRESA.
Thank you very much
1,139 Views
