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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
razvan_brais
Creator III
Creator III

Load all rows in script from a file

Hy guys. I would like to load all rows from a file even if there is no associations between table.

I`m having three tables.

Table1 with ID , Date , Value

Table2 with ID , Level1 , Level2,

Table3 with Level1 , Level2,Budget.

When I`m using the normal load it will only load all fields that have a match between tables.

Such as:

IDDateValue
106/01/2016100
207/01/201650
308/01/2016150
IDLEVEL1LEVEL2
1ElectronicsLaptops
2ElectronicsSmartWatches
3ElectronicsSmartPhones
4ElectronicsGaming
Level1Level2Budget
ElectronicsLaptops700
ElectronicsSmartWatches300
ElectronicsSmartPhones400
ElectronicsGaming200

What I want to do is to show all data in a pivot table even if there is no association between Table1 and Table 2. The result I would like to look something like this :

IDLEVEl1LEVEL2ValueBudget
1ElectronicsLaptops100700
2ElectronicsSmartWatches50300
3ElectronicsSmartPhones150400
4ElectronicsGaming0200

Please help me , because I can`t find a way to do this.

13 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

MyTable:

LOAD ID, Date, Value FROM Table1;

JOIN (MyTable)

LOAD ID, LEVEL1, LEVEL2 FROM Table2;

JOIN (MyTable)


LOAD Level1 as LEVEL1, Level2 as LEVEL2, Budget FROM Table3;


talk is cheap, supply exceeds demand
varshavig12
Specialist
Specialist

Rename the columns

Anil_Babu_Samineni

Try

Join(Table Name)

Then use Qualify & Un Qualify for that to get updated Values

Level1 as LEVEL1 , Level2 as LEVEL2 for 3rd Table while resident

Capture.PNG

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
razvan_brais
Creator III
Creator III
Author

I don`t want to rename the columns because I will need the same column name in expressions.

Gysbert . The problem is that my First table will be stored in a qvd file , and I don`t want to save all of the info from those three tables.

razvan_brais
Creator III
Creator III
Author

Can you pls attach the qvw file?

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

If you don't want to rename fields then you will end up with a monster that will eat all your ram and cpu cycles and molest your kittens. Don't try to make Qlikview do things it shouldn't do.

If you don't want to store the resulting joined table in a qvd then simply don't store it in a qvd. Nobody's forcing you to do so.


talk is cheap, supply exceeds demand
Anil_Babu_Samineni

Try This, For ref

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
razvan_brais
Creator III
Creator III
Author

You are saying that if I have the same column name it will put in my table all of the data?

razvan_brais
Creator III
Creator III
Author

Anil , it doesn`t work. I`m trying to show all data in a pivot table. But I have no success in doing that.