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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Synthetic Key Problem

Hello Community,

I'm having trouble with synthetic keys. I've gone through several posts but I can't get my scenario to work.

I have two tables which both have the following columns: Month, Year, Date and Department. The rest of the columns has no connection between the two tables. I also have a category column to let me distinguish between both tables.

So each table will get its own sheet but since I want to use those 4 columns as selection and listboxes and also add a Dashboard where both tables are shown I need a way to remove the synthetic key that is being created.

What are my options here?

I'm guessing I can combine Category+Department+Date to get a unique KEY. But how do I continue from there? I also want to use a Master Calendar table.

TABLE ONE:

Category

Department

YearMonthDateIndependent Col
ONEA201212012-1-1
ONEA201322013-2-1
ONEB201212012-1-1
ONEB201322013-2-1

TABLE TWO:

Category

Department

YearMonthDateIndependent Col
TWOA201212012-1-1
TWOA201322013-2-1
TWOB201212012-1-1
TWOB201322013-2-1

Thank you.

Labels (1)
1 Solution

Accepted Solutions
luciancotea
Specialist
Specialist

Concatenate the tables:

LOAD * FROM table1;

concatenate LOAD * FROM table2;

View solution in original post

2 Replies
luciancotea
Specialist
Specialist

Concatenate the tables:

LOAD * FROM table1;

concatenate LOAD * FROM table2;

khadeer
Specialist
Specialist

Hi,

There is no need to give association . Just you have to concatenate both tables.

Regards,

Khadeer