<?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 Re: Logical Model --&amp;gt; Physical table in Qlik Compose</title>
    <link>https://community.qlik.com/t5/Qlik-Compose/Logical-Model-gt-Physical-table/m-p/1765269#M196</link>
    <description>&lt;P&gt;Here is another example, but the behaviour is different in Compose.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ubanerjee_0-1606747308351.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/45007i8983808FD84E7B2A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ubanerjee_0-1606747308351.png" alt="ubanerjee_0-1606747308351.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;upon import of the Erwin file the model generates as below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ubanerjee_2-1606747382729.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/45009i4D0E6B159479B3C1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ubanerjee_2-1606747382729.png" alt="ubanerjee_2-1606747382729.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;UOM table shows up like this(Notice the missing DATA_SOURCE Column).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ubanerjee_1-1606747342211.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/45008iEBFB6D30025C6100/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ubanerjee_1-1606747342211.png" alt="ubanerjee_1-1606747342211.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I am unable to understand how Compose differentiates between identifying vs Non-identifying relationships of Erwin in the Compose model.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 30 Nov 2020 14:43:22 GMT</pubDate>
    <dc:creator>ubanerjee</dc:creator>
    <dc:date>2020-11-30T14:43:22Z</dc:date>
    <item>
      <title>Logical Model --&gt; Physical table</title>
      <link>https://community.qlik.com/t5/Qlik-Compose/Logical-Model-gt-Physical-table/m-p/1764212#M195</link>
      <description>&lt;P&gt;I have the following objects in my Model in ERWIN.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ubanerjee_1-1606284164820.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/44768i18234E945415E218/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ubanerjee_1-1606284164820.png" alt="ubanerjee_1-1606284164820.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When I import this model in Compose I get the following&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ubanerjee_0-1606283987403.png" style="width: 756px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/44767iE542EA301A748691/image-dimensions/756x125?v=v2" width="756" height="125" role="button" title="ubanerjee_0-1606283987403.png" alt="ubanerjee_0-1606283987403.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In the mapping AGREEMENT_MASTER shows up as follows.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ubanerjee_2-1606284288845.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/44769iCF667E3589E3FB79/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ubanerjee_2-1606284288845.png" alt="ubanerjee_2-1606284288845.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Why are these additional columns (BUSINESS_UNIT, COMPANY_ID, ADDR_ID) showing up as part of the key? Compose throws an error if I do not have a value for these columns, so I am populating them with 0. I have a BUSINESS UNIT column in this table, but I cannot use that to map here as that value may be null in some case. What is the expected behavior here?&lt;/P&gt;&lt;P&gt;I believe this is due to the dummy column DATA_SOURCE that is part of the PK for every table. This has been added to ensure I am able to load entities from multiple sources. How should I be changing the model to fix this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2025 20:49:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Compose/Logical-Model-gt-Physical-table/m-p/1764212#M195</guid>
      <dc:creator>ubanerjee</dc:creator>
      <dc:date>2025-03-14T20:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: Logical Model --&gt; Physical table</title>
      <link>https://community.qlik.com/t5/Qlik-Compose/Logical-Model-gt-Physical-table/m-p/1765269#M196</link>
      <description>&lt;P&gt;Here is another example, but the behaviour is different in Compose.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ubanerjee_0-1606747308351.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/45007i8983808FD84E7B2A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ubanerjee_0-1606747308351.png" alt="ubanerjee_0-1606747308351.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;upon import of the Erwin file the model generates as below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ubanerjee_2-1606747382729.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/45009i4D0E6B159479B3C1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ubanerjee_2-1606747382729.png" alt="ubanerjee_2-1606747382729.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;UOM table shows up like this(Notice the missing DATA_SOURCE Column).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ubanerjee_1-1606747342211.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/45008iEBFB6D30025C6100/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ubanerjee_1-1606747342211.png" alt="ubanerjee_1-1606747342211.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I am unable to understand how Compose differentiates between identifying vs Non-identifying relationships of Erwin in the Compose model.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2020 14:43:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Compose/Logical-Model-gt-Physical-table/m-p/1765269#M196</guid>
      <dc:creator>ubanerjee</dc:creator>
      <dc:date>2020-11-30T14:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: Logical Model --&gt; Physical table</title>
      <link>https://community.qlik.com/t5/Qlik-Compose/Logical-Model-gt-Physical-table/m-p/1765294#M197</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/130360"&gt;@ubanerjee&lt;/a&gt;&amp;nbsp; -&amp;nbsp;&lt;/P&gt;&lt;P&gt;Compose automated ETL will handle associating the physical DW tables together based on the surrogate keys (ID column).&amp;nbsp; &amp;nbsp;In the Compose model you have relationships between your entities and those relationships are based on the LOGICAL KEY (typically considered the natural or business key in DW parlance).&amp;nbsp;&lt;/P&gt;&lt;P&gt;When processing the data, Compose needs to understand which source columns map to the parent(foreign key) tables NATURAL KEYs.&amp;nbsp; &amp;nbsp;To do this, Compose adds the KEY columns for the related table into the mapping.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So for your example - Agreement_Master has an FK to Business_Unit_Master &amp;lt;BUM&amp;gt;&amp;nbsp; &amp;nbsp;Business_Unit is a KEY column for BUM - so it has been pulled down into the Agreement_Master mapping.&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What looks like an issue here (and something I would not do in Compose personally) - is making a relationship part of the KEY of the table.&amp;nbsp; &amp;nbsp;Any attribute that is defined as a KEY requires a value to be populated (as you can't really have NULL's for KEYs ).&amp;nbsp; &amp;nbsp;So if you have FK's defined - I would remove them from being part of the key and denorm the model slightly so the columns exist in both places.&amp;nbsp; &amp;nbsp; &amp;nbsp;This is also why you are seeing "cascading" of the natural key columns - eg. Company_ID.&amp;nbsp; &amp;nbsp;Its been a while since I've worked in ErWin (17 years or so!) - so can you remind me - do you have Company FK defined as part of the KEY of Business_Unit_Master ?&amp;nbsp; &amp;nbsp;(if so - thats why you are seeing cascading of the column Company_ID - if not it appears that the import somehow detected it as part of the key and that needs correcting).&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this makes sense - happy to chat offline if not as sometimes its easier to discuss in person / with examples :).&amp;nbsp;&lt;/P&gt;&lt;P&gt;As an FYI - when you map source columns to the related key columns (eg Business_Unit in your case)&amp;nbsp; -&lt;/P&gt;&lt;P&gt;if the value in the source column is NULL and its defined as part of the KEY of the entity you are loading - you'll get the error.&lt;/P&gt;&lt;P&gt;if the value in the source column is NULL and its NOT defined as part of the KEY of the entity you are loading - the record will be tied to the auto-created "NULL" record (ID = 0).&lt;/P&gt;&lt;P&gt;if the value in the source column is NOT NULL and its NOT defined as part of the KEY of the entity you are loading - the record will be tied to the correct "parent" record if it exists or it will be inferred if it does not exist.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2020 15:50:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Compose/Logical-Model-gt-Physical-table/m-p/1765294#M197</guid>
      <dc:creator>TimGarrod</dc:creator>
      <dc:date>2020-11-30T15:50:26Z</dc:date>
    </item>
  </channel>
</rss>

