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

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
Kartik2
Partner - Creator
Partner - Creator

Database

I have different materialcodes in two different tables named as  "IdleInventory" and "WeeklyInventory" , but to link  these two tables together I have kept the "MaterialCode" field name same in both the tables.

I have a field name as "MonthWeek" but to avoid synthetic  key error  ,I have given different name to it in another table

But I want to use a single "MonthWeek" field as a filter in my dashbaord which will give proper data of both the Tables 

How can I do this ?

Labels (3)
1 Solution

Accepted Solutions
vincent_ardiet_
Specialist
Specialist

You can use AutoNumber, AutoNumberHash or Hash functions to create a key composed of MaterialCode and MonthWeek in each table.
Then, create a link table with the newly created key + MaterialCode and MonthWeek (of one of the table or both regarding if all combinations are available in all tables or not)
 and this will avoid the synthetic key.

View solution in original post

3 Replies
vincent_ardiet_
Specialist
Specialist

You can use AutoNumber, AutoNumberHash or Hash functions to create a key composed of MaterialCode and MonthWeek in each table.
Then, create a link table with the newly created key + MaterialCode and MonthWeek (of one of the table or both regarding if all combinations are available in all tables or not)
 and this will avoid the synthetic key.

sidhiq91
Specialist II
Specialist II

@Kartik2  Could you please provide a dataset which will help us understand the issue and help you to resolve it?

Kartik2
Partner - Creator
Partner - Creator
Author

Hey @sidhiq91 , Thanks for asking ,but i have resolved the issue