Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
flashfabrixx
Contributor
Contributor

Avoid synthetic key for relationship between generic object property and hierarchical structure

The structure of the data set contains two different structures:
- User -> Job -> Report
- Department -> Machine

The report has a property "objectId" which can be a department (departmentId) or a machine (machineId). The user should be able to filter the jobs by user, department and machine. 2019-11-11 09_01_00-Qlik Sense Desktop.png

 

How can I connect the objectId with the "Department->Machine" structure (e.g. to the departmentId/machineId) without getting a synthetic key error?

See the attached file for a sample application with the given structure. The reproduce the error, open the data load editor, access the section "Assets" and uncomment the given blocks.

Labels (2)
1 Solution

Accepted Solutions
flashfabrixx
Contributor
Contributor
Author

Problem has been solved using the Hierarchy keyword and transforming the input data.

  1. Joined departments and machines into one table to prepare mapping (Table: Hierarchy_Tmp)
  2. Build hierarchy table based on departments and machines (Table: Hierarchy_Mapping)
  3. Update field names into new table (Table: Hierarchy) and drop old tables

By using a separate field "objectId", the selected option from the Reports table can be connected with the full object. 

2019-11-12 11_43_54-Qlik Sense Desktop.png

 

See the attached file for the working solution and updated script.

 

 

View solution in original post

1 Reply
flashfabrixx
Contributor
Contributor
Author

Problem has been solved using the Hierarchy keyword and transforming the input data.

  1. Joined departments and machines into one table to prepare mapping (Table: Hierarchy_Tmp)
  2. Build hierarchy table based on departments and machines (Table: Hierarchy_Mapping)
  3. Update field names into new table (Table: Hierarchy) and drop old tables

By using a separate field "objectId", the selected option from the Reports table can be connected with the full object. 

2019-11-12 11_43_54-Qlik Sense Desktop.png

 

See the attached file for the working solution and updated script.