<?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 Model a 1:N relation in Qlik Compose</title>
    <link>https://community.qlik.com/t5/Qlik-Compose/Model-a-1-N-relation/m-p/1889854#M484</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a database designed in this way. The main "fact tables" has ID's fields pointing to "bridge" tables, in turn pointings to "subdetail" tables.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="paolo_cordini_0-1644250138995.png" style="width: 304px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/71731i75DB29DD35D1EAB1/image-dimensions/304x461?v=v2" width="304" height="461" role="button" title="paolo_cordini_0-1644250138995.png" alt="paolo_cordini_0-1644250138995.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The relationship between the "main" table and the "subdetail" tables is 1:N&lt;/P&gt;
&lt;P&gt;I am trying to figure out whether there Is a way to model such a relationship with Compose.&lt;/P&gt;
&lt;P&gt;I cannot link the main table to "bridge" tables because the relation fields are not primary keys. I cannot define them as primary keys because they are not unique.&lt;/P&gt;
&lt;P&gt;So I cannot use this relationship in Data Mart definition.&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Paolo&lt;/P&gt;</description>
    <pubDate>Fri, 14 Mar 2025 20:49:07 GMT</pubDate>
    <dc:creator>paolo_cordini</dc:creator>
    <dc:date>2025-03-14T20:49:07Z</dc:date>
    <item>
      <title>Model a 1:N relation</title>
      <link>https://community.qlik.com/t5/Qlik-Compose/Model-a-1-N-relation/m-p/1889854#M484</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a database designed in this way. The main "fact tables" has ID's fields pointing to "bridge" tables, in turn pointings to "subdetail" tables.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="paolo_cordini_0-1644250138995.png" style="width: 304px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/71731i75DB29DD35D1EAB1/image-dimensions/304x461?v=v2" width="304" height="461" role="button" title="paolo_cordini_0-1644250138995.png" alt="paolo_cordini_0-1644250138995.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The relationship between the "main" table and the "subdetail" tables is 1:N&lt;/P&gt;
&lt;P&gt;I am trying to figure out whether there Is a way to model such a relationship with Compose.&lt;/P&gt;
&lt;P&gt;I cannot link the main table to "bridge" tables because the relation fields are not primary keys. I cannot define them as primary keys because they are not unique.&lt;/P&gt;
&lt;P&gt;So I cannot use this relationship in Data Mart definition.&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Paolo&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2025 20:49:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Compose/Model-a-1-N-relation/m-p/1889854#M484</guid>
      <dc:creator>paolo_cordini</dc:creator>
      <dc:date>2025-03-14T20:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: Model a 1:N relation</title>
      <link>https://community.qlik.com/t5/Qlik-Compose/Model-a-1-N-relation/m-p/1913188#M537</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/41229"&gt;@paolo_cordini&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am not seeing any direct way to model such a relationship with Compose. If you are still looking for a solution, please open a support case, and the team should be able to assist you if there are any workarounds.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Nanda&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2022 14:08:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Compose/Model-a-1-N-relation/m-p/1913188#M537</guid>
      <dc:creator>Nanda_Ravindra</dc:creator>
      <dc:date>2022-04-01T14:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: Model a 1:N relation</title>
      <link>https://community.qlik.com/t5/Qlik-Compose/Model-a-1-N-relation/m-p/1913196#M538</link>
      <description>&lt;P&gt;Hi,&amp;nbsp; Can you provide some info on what you would want the "fact" table to look like?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This&amp;nbsp;&lt;EM&gt;feels&lt;/EM&gt; like a scenario where pivoting the data set to flatten the multiple values in the DW model may support what you are looking for - but would be good to understand output to be able to provide possible solutions.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2022 14:14:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Compose/Model-a-1-N-relation/m-p/1913196#M538</guid>
      <dc:creator>TimGarrod</dc:creator>
      <dc:date>2022-04-01T14:14:40Z</dc:date>
    </item>
    <item>
      <title>Re: Model a 1:N relation</title>
      <link>https://community.qlik.com/t5/Qlik-Compose/Model-a-1-N-relation/m-p/1914298#M541</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;actually, I could say there are many fact tables. The table I called "Main Table" is a fact table but "Detail1", "Detail2", are fact tables too, with 1:n relationship with the main one.&lt;/P&gt;
&lt;P&gt;I cannot pivot the data set because I don't know in advance how many rows are in "Detail" tables for one record in the Main Table.&lt;/P&gt;
&lt;P&gt;The solution I adopted for the moment is to leave the tables unrelated in the data model. In the Data Mart I defined as "dimensions" (even if they aren't) the detail tables, so I could flatten "Bridge" and "Detail" but without linking them to the fact table.&lt;/P&gt;
&lt;P&gt;It's ugly and non-canonical, but it works for the final users because the Main Table and Detail tables must remain separated.&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;
&lt;P&gt;Paolo&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 06:39:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Compose/Model-a-1-N-relation/m-p/1914298#M541</guid>
      <dc:creator>paolo_cordini</dc:creator>
      <dc:date>2022-04-05T06:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: Model a 1:N relation</title>
      <link>https://community.qlik.com/t5/Qlik-Compose/Model-a-1-N-relation/m-p/1915982#M548</link>
      <description>&lt;P&gt;Hi Paolo,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It looks like you have found a solution based on your last comment. We suggest submitting a feature request thru our Ideation &amp;nbsp;for your intended use case.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Lyka&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 17:20:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Compose/Model-a-1-N-relation/m-p/1915982#M548</guid>
      <dc:creator>lyka</dc:creator>
      <dc:date>2022-04-07T17:20:00Z</dc:date>
    </item>
  </channel>
</rss>

