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: 
Anonymous
Not applicable

Duplicates identical tables

Hi,

I have a strange problem -

While I'm expecting of qlikview to automaticly concatenate the table creation that resides inside a loop it does NOT and just duplicates the tables.

Attaching is a screenshot of the loop and the tables schema.

Any suggestions?

Capture1.JPGCapture2.JPG

5 Replies
Anonymous
Not applicable
Author

Create the table as an empty stub before the loop and then within the loop force the Concatenate().

Anonymous
Not applicable
Author

all right.

Thanks, I'll try that later on.

BTW - do you know WHY does this happen?

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

After the first right join, the table now has additional columns. The net Load loads only two fields so will not autoconcatenate. Do as Bill suggest, create a dummy table and force concatenate.

Peter_Cammaert
Partner - Champion III
Partner - Champion III

Didn't see that one, thanks Rob.

Would it work if the script file first assembles the new segment and then performs a load that could autoconcatenate, like in:

FOR i = 1 to 28

  LET ...;

  LET ...;


  TempInstallersXX:

  LOAD Account_id RESIDENT Accounts;

  RIGHT JOIN

  LOAD Account_id,

       Month(...) AS Month,

       ...

  RESIDENT solar_ffield

  WHERE ...

  GROUP BY ...;

  Lost_InstallersXX: // Will AUTOCONCATENATE?

  LOAD * RESIDENT TempInstallerXX;

  DROP Table TempInstallersXX;

NEXT i;

[Edit] Sorry, I thought I got a very simple version that does the same, only to realise that I can't get my head around the LOAD/RIGHT JOIN logic. What is it's purpose? It won't reduce the data loaded from solar_field.

Best,

Peter

Anonymous
Not applicable
Author

Hi Rob

I didn't understand your sentence of - " The net Load loads only two fields "

what is a net load?


Thanks