Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
Karineyumi
Contributor II
Contributor II

Load with one Key from Tables that were joined

Hi everyone, please help meeee.

 

I have tree tables one called "Saleskit", the other "Monthstable" and the "Database":

Which basically, I have a whole database for budgets segmented by customer/sales rep/year, and i need to show those numbers by year/month/week, with that, I joined the "Saleskit" with "Monthstable" to create lines for me by Month/week for each budget. 

And finally I need to create a key from the joined "Saleskit" + "Monthstable" table into my "Database" :

 

"Lara code"&"Export / Import/ FF"&Year1&Month1&Week1 as SaleskitKey

 

SALESKIT:
LOAD
Country as "Sales Country",
"Sales Manager",
"Sales rep",
"Sales Role",
"Lara BP code" as "Lara code",
"Customer name",
"Export / Import/ FF",
"Vol. Budget (Teus)"/52 as "Vol. Budget (Teus)",
Segmentation,
"Year1"
FROM [lib://QS_Projects_BA_Miami_RO/30_External source files/SALESKITDATABASE.qvd]
(qvd);

 

join
Monthstable:
LOAD
Year1,
Month1,
Week1
FROM [lib://AttachedFiles/Monthstable.xlsx]
(ooxml, embedded labels, table is Monthstable);

 
SALESKITMONTH:
Load
"Sales Country",
    "Sales Manager",
    "Sales rep",
    "Sales Role",
    "Master Customer Name",
    "Customer name",
    "Vol. Budget (Teus)",
    "VAS Budget ($)",
    "CH Budget (Teus)",
    Segmentation,
    Category,
    "Master BP code",
    "Country_Code",
"Lara code"&"Export / Import/ FF"&Year1&Month1&Week1 as SaleskitKey
Resident SALESKIT;
 
drop Table SALESKIT;

 

 

The problem that I`m having is that not all the customers in the Saleskit will be in the Database and vice versa. But I need to have both information, so its showing a lower Budget from Saleskit then it should. 

 

**I cannot do the Month/week inclusion in the excel (which is were my data comes from) because i have around 700.000 lines on Saleskit table and I have a 3 year worth of data to have month/weeks numbers 

 

thank youuuuu appreciate your help. 

 

Labels (1)
2 Replies
PrashantSangle

Can you explain your query with sample data & expected output.

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
Karineyumi
Contributor II
Contributor II
Author

hi PrashantSangle,

sure thing.

For the Saleskitable and the Monthstable joined i need this output:

Saleskit table:
Karineyumi_0-1701462016329.png

Monthstable:

Karineyumi_1-1701462261391.png

 

OUTPUT:

Karineyumi_0-1701462633805.png

 

 

and then with this Key (column in red) i will connect with my Database:

Karineyumi_2-1701463032319.png

 

 

So for the final Output, I need an Outer Join. Information from all tables. 

Because I need to do the Budget vs the Volume by year/month/week but i also need the information on customers that are on table Saleskit but not on Database and customers that are on Databse but not on Saleskit.

 

thank you for you time 🙂