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: 
n1ef5ng1
Creator
Creator

Data Model Structure

Hi Everyone I have a question on data joining

I have this two table (actual fact is 3 but i would want to simplify it)

Table 1 consist of : Country, Warehouse, Type, Delivery_Mode and the list of KPIs (aggregated such as volumes, revenue , cancellation)

I have Table 2 that consist of Country, Warehouse, Type and the list of KPIs (Average_Time from shipped to delivered etc)

I would like to combine this two table and do note that table 2 does not have Delivery Mode.

When I do a left join table 1, it give me duplicate info on table 2 data with the delivery mode. How can I make it that it is unique and it should show a separate record

Capture.PNG

1 Solution

Accepted Solutions
prma7799
Master III
Master III

4 Replies
Kushal_Chawda

Perform Concatenate operation between two tables. Rename your table two fields according to table 1 and perform concatenate

Table1:

LOAD Country, Warehouse, Type, Delivery_Mode,KPI1,KPI2,KPI3

FROM table1


concatenate(Table1)


LOAD Country, Warehouse, Type,KPI4,KPI5

FROM table2

prma7799
Master III
Master III

PFA...

mangalsk
Creator III
Creator III

You just need to add missing field with null data as below and all other columns will have same name:

Load

Country, Warehouse, Type, Delivery_Mode and the list of KPIs,

(aggregated such as volumes, revenue , cancellation)

concate

Country, Warehouse,null() as Delivery_Mode, Type and the list of KPIs (Average_Time from shipped to delivered etc)

Kushal_Chawda

n1ef5ng1

Is my answer was something different?