Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE

link table

No ratings
cancel
Showing results for 
Search instead for 
Did you mean: 
vikasmahajan

link table

Last Update:

Aug 25, 2023 5:38:35 AM

Updated By:

vikasmahajan

Created date:

Jan 20, 2022 8:46:01 AM

Attachments

Link Table :

Please find simple link table concept implemented with multiple fact tables. Hope definitely help new comers will help to clear concept of link tables.

Data Modelling is technique in qlik for linking tables we can use link tables concept please refer ppt .

vikasmahajan_0-1642687732160.png

 

Qlik Tips: Rules for creating a Key/Link Table in QlikView and this post

Re: Advantages of Link Table;

ref: https://www.analyticsvidhya.com/blog/2014/12/remove-synthetic-key-concatenation-link-table-qlikview/

Please find attached excel & data model containing how to implement a link table.

 

Attached Solution Linktable2

Hope this help to new comers.

Thanks

Vikas

 

Labels (2)
Comments
Vadimb
Partner - Contributor II
Partner - Contributor II

Hi,

Thank you for the information.
What are the pros and cons of using a concatenate instead of a join?

for example

[LinkTable_20]:
LOAD Distinct
[Company.id] AS [_Company.id_KEY]
RESIDENT [Company];
JOIN
LOAD Distinct
[Projects.CompanyInitiatesId] AS [_Company.id_KEY]
,[Projects.id] AS [_Projects.id_KEY]
RESIDENT [Projects];
JOIN
LOAD Distinct
[Requests.IInitiatingCompanyId] AS [_Company.id_KEY]
,[Requests.UsrProjectId] AS [_Projects.id_KEY]
,[Requests.id] AS [_Requests.id_KEY]
RESIDENT [Requests];
JOIN
LOAD Distinct
[Applications.UsrProjectCompanyInitiateId] AS [_Company.id_KEY]
,[Applications.UsrProjectId] AS [_Projects.id_KEY]
,[Applications.RequestId] AS [_Requests.id_KEY]
,[Applications.id] AS [_Applications.id_KEY]
RESIDENT [Applications];


[LinkTable]:
NoConcatenate
LOAD Distinct *
,[_Company.id_KEY] AS [_Full_Company_Key_DDF]
,[_Company.id_KEY] &' | '& [_Projects.id_KEY] AS [_Full_Projects_Key_DDF]
,[_Company.id_KEY] &' | '& [_Projects.id_KEY] &' | '& [_Requests.id_KEY] AS [_Full_Requests_Key_DDF]
,[_Company.id_KEY] &' | '& [_Projects.id_KEY] &' | '& [_Requests.id_KEY] &' | '& [_Applications.id_KEY] AS [_Full_Applications_Key_DDF]
RESIDENT [LinkTable_20];
DROP TABLE [LinkTable_20];

starke_be-terna
Partner - Contributor III
Partner - Contributor III

@Vadimb there exists an excellent technical brief on this topic. Basically in my use cases it generally boiled down to performance (concatenate generally is better) vs. understandability (link generally is better). 

If you want a more detailed comparison of the two options, I recommend you reading the technical brief "QlikView Technical Brief - Concatenate and Link tables". 

I was not able to attach the document to my comment, but you should find it easily by googling.

Best regards,
Benjamin

Contributors
Version history
Last update:
‎2023-08-25 05:38 AM
Updated by: