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

Announcements
Streamlining user types in Qlik Cloud capacity-based subscriptions: Read the Details
cancel
Showing results for 
Search instead for 
Did you mean: 
shweta26
Contributor II
Contributor II

Datamodel issue

Hi Everyone,

There are 3 tables having the same key name gcindatekey.

Table 1: gcin + mismarket + date as gcindatekey

Table 2: gcin + edsfmarket + date as gcindatekey

Table 3: gcin + edsfmarket + date as gcindatekey

Now, all markets are different.

In the Link Table, using Outer Join, we have gcindatekey, date, and market.

When we try to combine data from Table 1 and Table 2 into one straight table, data loss is happening.

Labels (2)
4 Replies
Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi @shweta26 

  1. why are you creating composite key?
  2. why dont you concatenate all 3 tables in your data model and align key fields?

That would be the easiest and will not cause any issues like you are experiencing and it will also perform better. 

I am not sure as to why would you consider creating "linking table" at all?

cheers

Lech

cheers Lech, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful to the problem.
shweta26
Contributor II
Contributor II
Author

"I can't concatenate the tables because they are all different. Some tables have seller and gcin. One table is financial, another is limits, and another is utilization, while all the other columns

  • are tthe different
Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi @shweta26 

What you are saying does not mean you cannot concatenate tables. It does not matter that different facts are "limits", "finance" etc... All you need to do is make sure you only align and name columns which in theory represent the same thing like for example:

  • limit_date, finance_date, utilisation_date etc... as date...
  • then you align all which in theory line up to the same dimension you would link in your linking table

If you are coming from non-Qlik background i understand it may be strange but for all Qlikies here this is what we do - we just concatenate different facts into single fact table and then just align common dimensions. 

The main question is whether or not you would use not common dimensions in UI as a filter or against a measures from other facts tables. That is where concatenation would only show them agains fact lines those apply to.

Cheers

Lech

cheers Lech, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful to the problem.
PrashantSangle

Can you share your entire script or sample data to understand issue in more better way? Otherwise it will be just guess-work. 

 

regards,

Prashant Sangle

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂