Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi all,
I am having Synthetic keys issues in my script Year and KeyCol
KeyCol should be common Column between tables and Year is forming Synthetic key
I am using Year to create Activity Date column, I need to check standard cost for particular Activity date filter also along with other Filters
If I drop Year column, Standard cost is showing same for a particular Lane for all months
For example if I have lane 72J , Standard cost for Activity date 2023-01 is 9.11 and 2024-01 is 4.88, sum is 14.99
but when i click 2023-01 showing 14.99 and for 2024-01 also 4.88, it's not changing according to activity date
Hi @Bharathi09 ,
In Qlik a Synthetic Key forms when there are 2 or more field are linking to the same table.
please take a look at this support page:
+-----------------+ +---------------------+
| Table 1 | | Table 2 |
+-----------------+ +---------------------+
| ID | | Order |
| Field 1 |-------| Field 1 |
| Field 2 |-------| Field 2 |
+-----------------+ +---------------------+
the best thing to do is at the end of the script to drop one of the fields or to rename one of the fields that create a synthetic key.
+-----------------+ +---------------------+
| Table 1 | | Table 2 |
+-----------------+ +---------------------+
| ID | | Order |
| Field 1 |-------| Field 1 |
| Field 2 | | Field 3 |
+-----------------+ +---------------------+
Hi @Bharathi09 ,
In Qlik a Synthetic Key forms when there are 2 or more field are linking to the same table.
please take a look at this support page:
+-----------------+ +---------------------+
| Table 1 | | Table 2 |
+-----------------+ +---------------------+
| ID | | Order |
| Field 1 |-------| Field 1 |
| Field 2 |-------| Field 2 |
+-----------------+ +---------------------+
the best thing to do is at the end of the script to drop one of the fields or to rename one of the fields that create a synthetic key.
+-----------------+ +---------------------+
| Table 1 | | Table 2 |
+-----------------+ +---------------------+
| ID | | Order |
| Field 1 |-------| Field 1 |
| Field 2 | | Field 3 |
+-----------------+ +---------------------+