<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Multi-key &amp;amp; multi fact datamodel (with link table) in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Multi-key-amp-multi-fact-datamodel-with-link-table/m-p/1760384#M5541</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm working on a datamodel that has 4 dimensions and 3 fact tables. I tried using a link table to connect everything together but it seems that my model has some complications I'm unable to manage. Would any one of you be able to advize?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Draw.io of the datamodel below &amp;amp; attached:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DawidDaw_1-1605023771613.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/43914iB2A2E105D3FF5EF0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DawidDaw_1-1605023771613.png" alt="DawidDaw_1-1605023771613.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically I have two issues I'm unable to code correctly in my script:&lt;/P&gt;&lt;P&gt;- How do I manage the two key fields on project (project_id &amp;amp; project_code)? I can't link project to my link table twice, and I can't link project directly to a fact as that would create circular references.&lt;/P&gt;&lt;P&gt;- How do I manage the composite keys? I need to be able to select on ref_date (actually, it's an "always one selected"), should I just add it to my link_key?&lt;/P&gt;&lt;P&gt;Any idea how I could fix this mess?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a bunch!&lt;/P&gt;</description>
    <pubDate>Thu, 23 Dec 2021 13:18:51 GMT</pubDate>
    <dc:creator>DawidDaw</dc:creator>
    <dc:date>2021-12-23T13:18:51Z</dc:date>
    <item>
      <title>Multi-key &amp; multi fact datamodel (with link table)</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Multi-key-amp-multi-fact-datamodel-with-link-table/m-p/1760384#M5541</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm working on a datamodel that has 4 dimensions and 3 fact tables. I tried using a link table to connect everything together but it seems that my model has some complications I'm unable to manage. Would any one of you be able to advize?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Draw.io of the datamodel below &amp;amp; attached:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DawidDaw_1-1605023771613.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/43914iB2A2E105D3FF5EF0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DawidDaw_1-1605023771613.png" alt="DawidDaw_1-1605023771613.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically I have two issues I'm unable to code correctly in my script:&lt;/P&gt;&lt;P&gt;- How do I manage the two key fields on project (project_id &amp;amp; project_code)? I can't link project to my link table twice, and I can't link project directly to a fact as that would create circular references.&lt;/P&gt;&lt;P&gt;- How do I manage the composite keys? I need to be able to select on ref_date (actually, it's an "always one selected"), should I just add it to my link_key?&lt;/P&gt;&lt;P&gt;Any idea how I could fix this mess?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a bunch!&lt;/P&gt;</description>
      <pubDate>Thu, 23 Dec 2021 13:18:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Multi-key-amp-multi-fact-datamodel-with-link-table/m-p/1760384#M5541</guid>
      <dc:creator>DawidDaw</dc:creator>
      <dc:date>2021-12-23T13:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: Multi-key &amp; multi fact datamodel (with link table)</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Multi-key-amp-multi-fact-datamodel-with-link-table/m-p/1760618#M5546</link>
      <description>&lt;P&gt;Just concatenate (is union in sql) your fact-tables into a single-table by adding an extra [Source] field so that you could differ between the different sources. That they don't have an identically data-structure is mostly not a problem (and you may also add/adjust some of the missing parts maybe with a mapping).&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2020 09:38:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Multi-key-amp-multi-fact-datamodel-with-link-table/m-p/1760618#M5546</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2020-11-11T09:38:09Z</dc:date>
    </item>
  </channel>
</rss>

