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: 
ashishpalkar
Creator III
Creator III

Identify Data coming from which QVD

Hi There

I have 3 QVD's. Each QVD has different data sources.

Say QVD 1 -Data coming from A Source

Say QVD 2 -Data coming from B Source

Day QVD 2 -Data coming from C Source

In above QVD files, there is common ID no (Primary Key). When I want to display report along with ID and other QVD columns it should show from which QVD that ID belongs to.

Thanks,

4 Replies
MK_QSL
MVP
MVP

While loading data from QVD add below in script..

FIleName() as FileName

maximiliano_vel
Partner - Creator III
Partner - Creator III

You could add an identifier column? Like

LOAD *,

         'SourceA' as Source

FROM SourceA

For example?

Or you could use QUALIFY *;

swuehl
MVP
MVP

if you concatenate the data into one resident table, you can create an additional Source field in your LOAD:

LOAD *,

          'QVD1' as Source

FROM QVD1.qvd;

etc.

ashishpalkar
Creator III
Creator III
Author

Thanks for the update it worked as mentioned above.