Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
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.