<?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: Should I use one ID or multiple IDs? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Should-I-use-one-ID-or-multiple-IDs/m-p/1213658#M856641</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Personally I would merge them all into one single table by exploiting the ApplyMap() function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 05 Feb 2017 18:02:13 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-02-05T18:02:13Z</dc:date>
    <item>
      <title>Should I use one ID or multiple IDs?</title>
      <link>https://community.qlik.com/t5/QlikView/Should-I-use-one-ID-or-multiple-IDs/m-p/1213656#M856639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have multiple Tables and I want to join them all. All tables shares a common ID at the moment but I am not sure if I should model for each relation a separate ID even if the ID is always the same for all tables.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;For example I have T1, T2 and T3 all have the field ID. &lt;STRONG&gt;T2 and T3 can have multiple values for the same ID. &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;T1:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Load * inline [&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;ID, T1_VALUE&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;1, 1234567&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;2, 2345678&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;T2:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Load * inline [&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;ID, T2_VALUE&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;1, 100&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;1, 200&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;T3:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Load * inline [&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;ID, T3_VALUE&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;1, 20&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;2, 10&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;2, 40&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This would produce the following table structure.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="151993" alt="one_id.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/151993_one_id.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;The other approach would be to have single id for each relation. &lt;STRONG style="font-size: 10pt;"&gt;T2 and T3 can have multiple values for the same ID. &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px; font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;T1:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px; font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Load * inline [&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px; font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;T2_ID, &lt;SPAN style="font-family: 'courier new', courier; font-size: 13.3333px;"&gt;T3_ID&lt;/SPAN&gt;, T1_VALUE&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px; font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;1, 1, 1234567&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px; font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;2, 2, 2345678&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px; font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px; font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px; font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;T2:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px; font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Load * inline [&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px; font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;T2_ID, T2_VALUE&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px; font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;1, 10&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px; font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;1, 40&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px; font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px; font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px; font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;T3:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px; font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Load * inline [&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px; font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;T3_ID, T3_VALUE&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px; font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;1, 20&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px; font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;2, 10&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px; font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;2, 50&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px; font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This would leads to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="152000" alt="n_ids.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/152000_n_ids.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;As far what I have seen this produces the same results (besides the new fields for the new IDs). So, what &lt;SPAN style="font-size: 10pt;"&gt;is the difference?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Should-I-use-one-ID-or-multiple-IDs/m-p/1213656#M856639</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Should I use one ID or multiple IDs?</title>
      <link>https://community.qlik.com/t5/QlikView/Should-I-use-one-ID-or-multiple-IDs/m-p/1213657#M856640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Two are okay to fix the Perfect data model. While you have generating same Data model that case you need to use as per there allignment for Schema.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This case, I would use the second case instead of first one&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Feb 2017 16:23:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Should-I-use-one-ID-or-multiple-IDs/m-p/1213657#M856640</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-02-05T16:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: Should I use one ID or multiple IDs?</title>
      <link>https://community.qlik.com/t5/QlikView/Should-I-use-one-ID-or-multiple-IDs/m-p/1213658#M856641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Personally I would merge them all into one single table by exploiting the ApplyMap() function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Feb 2017 18:02:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Should-I-use-one-ID-or-multiple-IDs/m-p/1213658#M856641</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-05T18:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: Should I use one ID or multiple IDs?</title>
      <link>https://community.qlik.com/t5/QlikView/Should-I-use-one-ID-or-multiple-IDs/m-p/1213659#M856642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please note that this is not a star shema and T2 and T3 are no Dimension tables. Wouldn't ApplyMap() return only one value? T2 and T3 can have multiple values which are related to one value in T1 (n:1 relation). &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Feb 2017 19:10:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Should-I-use-one-ID-or-multiple-IDs/m-p/1213659#M856642</guid>
      <dc:creator />
      <dc:date>2017-02-05T19:10:08Z</dc:date>
    </item>
  </channel>
</rss>

