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: 
danimarc12
Partner - Creator
Partner - Creator

Link multiple tables

Hello everyone!

I have an issue with my app. I need to connect 3 tables of the product classification. Reparto --> Gruppo --> Sottogruppo.

Reparti.PNG

Gruppi.PNG

 

Sottogruppi.PNG

 

with my Fact Table:

Scarico.PNG

but I know I can't connect the tables with 2 or more keys 'cause I'm gonna create a Syntetich keys. How can I solve my problem? Any suggestion?

Thank you all!

1 Solution

Accepted Solutions
stevejoyce
Specialist II
Specialist II

for multiple join keys, create composite key (ex. codReparto & '|' & codSotGruppo as %Reparto_SotGruppo).  Drop component fields from one of your tables and just keep in one table, but composite key in both tables.  You can also add AutoNumber %Reparto_SotGruppo; at the end of the script as well.

View solution in original post

4 Replies
Qlik1_User1
Specialist
Specialist

@danimarc12 Share the datamodel screen print.

stevejoyce
Specialist II
Specialist II

for multiple join keys, create composite key (ex. codReparto & '|' & codSotGruppo as %Reparto_SotGruppo).  Drop component fields from one of your tables and just keep in one table, but composite key in both tables.  You can also add AutoNumber %Reparto_SotGruppo; at the end of the script as well.

danimarc12
Partner - Creator
Partner - Creator
Author

dataModel.PNG

danimarc12
Partner - Creator
Partner - Creator
Author

Basically each codArticolo belongs to a codSotGruppo which belongs to a codGruppo which belongs to a codReparto. I have each cod- in my fact table but I want to display, ofc, in my App the Names of each classification.

And I have, for examples: 

inside codReparto:1 = codGruppo1, codGruppo2.

inside codReparto:2 = codGruppo1, codGruppo2.

So I need to link each item for codSotGruppo, codGruppo and codReparto.