Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

for... each loop ?

hi there,

i have the following problem: I have two tables:

IDs:

ID
1
2
3

Months:

Month
201101
201102
201103
201104
201105
201106

What i want:

For each ID in table IDs i want to create as many records as there are in table Months and in the end have one table that looks like this:

Result:

ID
Month
1201101
1201102
1201103
1201104
1201105
1201106
2201101
2201102
2201103
2201104
2201105
2201106
3201101
3201102
3201103
3201104
3201105
3201106

How can this be done in the LOAD script ?

Thanks a lot!

1 Solution

Accepted Solutions
Not applicable
Author

Hi,

I think that you can do this with a simple join statement.

Hope this helps, Ben

LOAD * INLINE [
    ID
    1
    2
    3
];

JOIN
Load * INLINE [
Month
201101
201102
201103
201104
201105
201106
];

View solution in original post

1 Reply
Not applicable
Author

Hi,

I think that you can do this with a simple join statement.

Hope this helps, Ben

LOAD * INLINE [
    ID
    1
    2
    3
];

JOIN
Load * INLINE [
Month
201101
201102
201103
201104
201105
201106
];