Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
deepakqlikview_123
Specialist
Specialist

How to load data from 2 QVW into single QVW file.

How to load data from 2 QVW into single QVW file.

Thanks

6 Replies
Aurelien_Martinez
Partner - Specialist II
Partner - Specialist II

Hi,

You can try this solution :

Multiple binary loads in 1 qvw

Aurélien

Help users find answers! Don't forget to mark a solution that worked for you!
ali_hijazi
Partner - Master II
Partner - Master II

using Binary loads QlikView allows only from one QVW file

you can loop through all tables of the 2 documents and save them as QVD as follows:

for i=NoOfTables() to 0 step -1

  let vTableName = TableName($(i));

  if not isnull(NoOfRows('$(vTableName)')) then

       store $(vTableName) into 'your_path' &  $(vTableName).qvd (qvd);

  endif

  next

then in your final document you simply read the QVDs where you stored them above

I can walk on water when it freezes
maleksafa
Specialist
Specialist

normally you can use binary load to load one qvw into another qvw, in your case it can be a little tricky if you are taking from two different qvws as it might ruin your schema (linking on the names etc...) so it is better to generate all the tables of your qvw into qvds and then read the qvds that you want in your destination qvw.

its_anandrjs

Hi Deepak,

Sorry at a time you can load only on binary file, If there is requirement like load 2 QVW into single then try loading one by one qvw.

1. Binary Qvw create by one  QVW

Ex:-

Binary Qvw  >> 1.QVW

2. Then use this second QVW

Binary QVW + 1.QVW >> 2.QVW

3. Then you get final 1.QVW + 2.QVW in single binary file

Its better if you create the QVDs of this binary files and then use it in the model because in the binary may be the synthetic keys created and the tables also.

Regards

Anand

ali_hijazi
Partner - Master II
Partner - Master II

only one Binary load statement is allowed in a document

I can walk on water when it freezes
Not applicable


Hi,

If you have 1.QVW and 2.QVW then you want load all the data into 1 application right.

just goto 1.QVW then use binary statement of the 2.QVW file into 1.QVW

so here 1.QVW file contains like dis

binary 2.QVW;

all the tables whatever already u have it in ur application(1.QVW)