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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
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.

Labels (1)
13 Replies
Anil_Babu_Samineni
MVP
MVP

Would you able to provide sample and expected o/p

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
jyothish8807
Master II
Master II

Hi Razvan,

Try this:

T1:

LOAD * Inline [

ID,    Date,    Value

1,    06/01/2016,    100

2,    07/01/2016,    50

3,    08/01/2016,    150];

T2:

LOAD * Inline [

ID,    LEVEL1,    LEVEL2

1,    Electronics,    Laptops

2,    Electronics,    SmartWatches

3,    Electronics,    SmartPhones

4,    Electronics,    Gaming

];

T3:

LOAD * Inline [

Level1,    Level2,    Budget

Electronics,    Laptops,    700

Electronics,    SmartWatches,    300

Electronics,    SmartPhones,    400

Electronics,    Gaming,    200];

NoConcatenate

Main_Table:

LOAD * Resident T1;

join

LOAD * Resident T2;

join

LOAD Level1 as LEVEL1, Level2 as LEVEL2,Budget

Resident T3;

Drop table T1,T2,T3;

Regards

KC

Best Regards,
KC
qlikview979
Specialist
Specialist

Hi ,

Please find the attached file

Pivot is showing Exact Result

razvan_brais
Creator III
Creator III
Author

I can`t provide the example. My value from level 2 is under level 1.

In my xls file I have data for it , but in my database where I have sums for every category it doesn`t exists.

What I can`t understand is that when I uncheck supress null values from level1 it shows me this info but not under the level where it should be.