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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
SI_NY02
Contributor III
Contributor III

Multiple connected tables with a look up table

I have 3 tables that all connect using a primary key of CustomerID.  All of these tables also have a store_id field that is specific to that table.  I then have a lookup table with store_id information which include information like store name and other store identifier information.  When I try to load these I'm getting loop errors.  What is the best way to load these?

Transaction table

Customer ID

Order ID

Store ID

Sales Amount

Application table

Customer ID

Store ID

Date

Customer table

Customer ID

Customer status

Store ID

Customer Address

Store ID Lookup Table

Store ID

Store Name

Store Type

Labels (1)
1 Solution

Accepted Solutions
BrunPierre
Partner - Master II
Partner - Master II

TAC:
LOAD [Customer ID],
[Order ID],
[Store ID],
[Sales Amount]

FROM Transaction_table;

Concatenate
LOAD [Customer ID],
[Store ID],
Date

FROM Application_table;

Concatenate
LOAD [Customer ID],
[Customer status],
[Store ID],
[Customer Address]

FROM Customer_table;

Store:
LOAD Distinct [Store ID]
Resident TAC;

Left Joins (Store)
LOAD [Store ID],
[Store Name],
[Store Type]

FROM Store;

View solution in original post

4 Replies
BrunPierre
Partner - Master II
Partner - Master II

Well, it ultimately depends on the data model and the specific questions that will be asked based on it. In any case, you could CONCATENATE the three tables and then link the attributes of the store to the resultant table.

SI_NY02
Contributor III
Contributor III
Author

Can you show me how it would look?
BrunPierre
Partner - Master II
Partner - Master II

TAC:
LOAD [Customer ID],
[Order ID],
[Store ID],
[Sales Amount]

FROM Transaction_table;

Concatenate
LOAD [Customer ID],
[Store ID],
Date

FROM Application_table;

Concatenate
LOAD [Customer ID],
[Customer status],
[Store ID],
[Customer Address]

FROM Customer_table;

Store:
LOAD Distinct [Store ID]
Resident TAC;

Left Joins (Store)
LOAD [Store ID],
[Store Name],
[Store Type]

FROM Store;

SI_NY02
Contributor III
Contributor III
Author

Awesome.  Thank you!