Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Regarding storing generic table into a qvd

Hello Friends,

I appreciate your time!

Kindly let me know is it possible to store a generic table into a qvd??

Regards,

Kiru

1 Solution

Accepted Solutions
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

If you want to store it as a single QVD, you will need to join the separate tables first.

CombinedGenericTable:

Load distinct ContactId as ContactID Resident Contacts;

FOR i = NoOfTables()-1 to 0 STEP -1

  LET vTable=TableName($(i));

  IF WildMatch('$(vTable)', 'genericload.*') THEN

  LEFT JOIN ([CombinedGenericTable]) LOAD * RESIDENT [$(vTable)];

  DROP TABLE [$(vTable)];

  ENDIF

NEXT i


STORE CombinedGenericTable INTO GenericLoad.qvd;


-Rob

View solution in original post

6 Replies
Anonymous
Not applicable
Author

isn't storing to a qvd using store statement working for you?

Not applicable
Author

Thanks for your reply.

Actually, it is giving table name not found error.

If I see in table viewer,

I am seeing the tablename.attribute name instead because of Generic load.

I have attached the appln, kindly let me know your suggestions.

Thanks,

Kiru !

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

If you want to store it as a single QVD, you will need to join the separate tables first.

CombinedGenericTable:

Load distinct ContactId as ContactID Resident Contacts;

FOR i = NoOfTables()-1 to 0 STEP -1

  LET vTable=TableName($(i));

  IF WildMatch('$(vTable)', 'genericload.*') THEN

  LEFT JOIN ([CombinedGenericTable]) LOAD * RESIDENT [$(vTable)];

  DROP TABLE [$(vTable)];

  ENDIF

NEXT i


STORE CombinedGenericTable INTO GenericLoad.qvd;


-Rob

alematex
Partner - Contributor III
Partner - Contributor III

Kiru

when you are loading a generic table, you al loading as many tables as atributtes you had. So when you are trying to store qlikview doesn´t know which one you are calling, and there is the error msg cause

if tou store like this tablename.attibute you can store them separately

Not applicable
Author

Thanks Rob,

It worked ; I  sincerely appreciate your time;

Kiru

Not applicable
Author

Thanks so much for  your help guys and I sincerely appreciate your time!

Kiru