<?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: Type3 SCD in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Type3-SCD/m-p/779289#M276218</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The &lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-4310"&gt;document on Slowly Changing Dimensions&lt;/A&gt; describes how to solve a &lt;EM&gt;Type 2 SCD&lt;/EM&gt; – that each affiliation (dimension key + interval in time) is stored in its own record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But you have a &lt;EM&gt;Type 3 SCD&lt;/EM&gt;, where each dimension key only has one record, and this has one field for current &lt;SPAN style="font-size: 13.3333330154419px;"&gt;affiliation &lt;/SPAN&gt;and a second for the previous affiliation. This means that information for the affiliation before the previous one has been lost.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would solve a &lt;EM&gt;Type 3 SCD&lt;/EM&gt; by converting it to the same structure as a &lt;EM&gt;Type 2&lt;/EM&gt; (one record per affiliation), and assigning &lt;SPAN style="text-decoration: underline;"&gt;&lt;EM&gt;all&lt;/EM&gt;&lt;/SPAN&gt; old records to the previous affiliation (which isn't quite correct, but the best you can do given what data you have). So, you need to load every record twice: once for the current affiliation; once for the old. Hence:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Intervals:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp; Supplier_Key,&lt;/P&gt;&lt;P&gt;&amp;nbsp; CurrentState as State,&lt;/P&gt;&lt;P&gt;&amp;nbsp; ChangeDate as FromDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Today() as ToDate&lt;/P&gt;&lt;P&gt;&amp;nbsp; From Type3Table ;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Supplier_Key&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; OldState as &lt;SPAN style="font-size: 13.3333330154419px;"&gt;State&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; MakeDate(1900) as FromDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Date(ChangeDate-1) as ToDate&lt;/P&gt;&lt;P&gt;&amp;nbsp; From Type3Table ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With this table you can build a &lt;EM&gt;Type3 SCD&lt;/EM&gt; solution using the method for &lt;EM&gt;Type2 SCD&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Jun 2015 16:47:48 GMT</pubDate>
    <dc:creator>hic</dc:creator>
    <dc:date>2015-06-12T16:47:48Z</dc:date>
    <item>
      <title>Type3 SCD</title>
      <link>https://community.qlik.com/t5/QlikView/Type3-SCD/m-p/779288#M276217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working on Incremental load. I have come across following kind of source data. There is no 'Modification Time'. The data gets updated without any modification timestamp, how to do incremental load for this kind of Source data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate help, if anybody has done this kind of implementation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H2&gt;&lt;SPAN class="mw-headline"&gt;Type 3&lt;/SPAN&gt;&lt;/H2&gt;&lt;P&gt;This method tracks changes using separate columns and preserves limited history. The Type 3 preserves limited history as it is limited to the number of columns designated for storing historical data. The original table structure in Type 1 and Type 2 is the same but Type 3 adds additional columns. In the following example, an additional column has been added to the table to record the supplier's original state - only the previous history is stored.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/76448_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;This record contains a column for the original state and current state—cannot track the changes if the supplier relocates a second time.&lt;/P&gt;&lt;P&gt;One variation of this is to create the field Previous_Supplier_State instead of Original_Supplier_State which would track only the most recent historical change.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2015 10:09:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Type3-SCD/m-p/779288#M276217</guid>
      <dc:creator />
      <dc:date>2015-01-28T10:09:32Z</dc:date>
    </item>
    <item>
      <title>Re: Type3 SCD</title>
      <link>https://community.qlik.com/t5/QlikView/Type3-SCD/m-p/779289#M276218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The &lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-4310"&gt;document on Slowly Changing Dimensions&lt;/A&gt; describes how to solve a &lt;EM&gt;Type 2 SCD&lt;/EM&gt; – that each affiliation (dimension key + interval in time) is stored in its own record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But you have a &lt;EM&gt;Type 3 SCD&lt;/EM&gt;, where each dimension key only has one record, and this has one field for current &lt;SPAN style="font-size: 13.3333330154419px;"&gt;affiliation &lt;/SPAN&gt;and a second for the previous affiliation. This means that information for the affiliation before the previous one has been lost.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would solve a &lt;EM&gt;Type 3 SCD&lt;/EM&gt; by converting it to the same structure as a &lt;EM&gt;Type 2&lt;/EM&gt; (one record per affiliation), and assigning &lt;SPAN style="text-decoration: underline;"&gt;&lt;EM&gt;all&lt;/EM&gt;&lt;/SPAN&gt; old records to the previous affiliation (which isn't quite correct, but the best you can do given what data you have). So, you need to load every record twice: once for the current affiliation; once for the old. Hence:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Intervals:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp; Supplier_Key,&lt;/P&gt;&lt;P&gt;&amp;nbsp; CurrentState as State,&lt;/P&gt;&lt;P&gt;&amp;nbsp; ChangeDate as FromDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Today() as ToDate&lt;/P&gt;&lt;P&gt;&amp;nbsp; From Type3Table ;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Supplier_Key&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; OldState as &lt;SPAN style="font-size: 13.3333330154419px;"&gt;State&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; MakeDate(1900) as FromDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Date(ChangeDate-1) as ToDate&lt;/P&gt;&lt;P&gt;&amp;nbsp; From Type3Table ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With this table you can build a &lt;EM&gt;Type3 SCD&lt;/EM&gt; solution using the method for &lt;EM&gt;Type2 SCD&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2015 16:47:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Type3-SCD/m-p/779289#M276218</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2015-06-12T16:47:48Z</dc:date>
    </item>
  </channel>
</rss>

