Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Loop

Hey,

why this one will not work?

Zahlen0:
LOAD * INLINE [
Zahl, Wert
1, 10
2, 20
3, 30
]
;

for vi=1 to 3

let vj = $(vi)-1;

Zahlen
$(vi):
LOAD *
Resident Zahlen$(vj);

drop table Zahlen$(vj);

next

Thankjs

1 Solution

Accepted Solutions
sunny_talwar

You need a NoConcatenate

Zahlen0:

LOAD * INLINE [

Zahl, Wert

1, 10

2, 20

3, 30

];

for vi=1 to 3

let vj = $(vi)-1;

Zahlen$(vi):

NoConcatenate

LOAD *

Resident Zahlen$(vj);

drop table Zahlen$(vj);

next

HTH

Best,

S

View solution in original post

3 Replies
Anonymous
Not applicable
Author

Thomas,

Work / nor work depends on your requirements. Please explain it.

Marc.

sunny_talwar

You need a NoConcatenate

Zahlen0:

LOAD * INLINE [

Zahl, Wert

1, 10

2, 20

3, 30

];

for vi=1 to 3

let vj = $(vi)-1;

Zahlen$(vi):

NoConcatenate

LOAD *

Resident Zahlen$(vj);

drop table Zahlen$(vj);

next

HTH

Best,

S

chrismarlow
Specialist II
Specialist II

Do you not need to force it not to concatenate using NoConcatenate as the field names are the same to on the tables?