<?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: Slowly changing dimension problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Slowly-changing-dimension-problem/m-p/248592#M711641</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A solution to your problem using IntervalMatch is attached. Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 28 May 2011 16:12:06 GMT</pubDate>
    <dc:creator>nagaiank</dc:creator>
    <dc:date>2011-05-28T16:12:06Z</dc:date>
    <item>
      <title>Slowly changing dimension problem</title>
      <link>https://community.qlik.com/t5/QlikView/Slowly-changing-dimension-problem/m-p/248591#M711640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is an example of a problem I want to solve with a slowly changing dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 2 tables - Department (Department, Manager, StartDate, EndDate) and Budget (Quarter, Department, BudgetAmount).&amp;nbsp; Managers always change department at the end a quarter in this example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to create a new table that includes the Budget columns and the Department.Manager.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In SQL it would look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select Budget.Quarter, Budget.Department, Department.Manager, Budget.BudgetAmount&lt;/P&gt;&lt;P&gt;from Budget, Department&lt;/P&gt;&lt;P&gt;where Budget.Department = Department.Department&lt;/P&gt;&lt;P&gt;and Budget.Quarter between Department.StartDate and Department.EndDate&lt;/P&gt;&lt;P&gt;order by Department, Quarter asc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a attached and Excel with sample data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried to use intervalmatch without success.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: dlaplant Added qvw with interval match.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 May 2011 13:14:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Slowly-changing-dimension-problem/m-p/248591#M711640</guid>
      <dc:creator />
      <dc:date>2011-05-28T13:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: Slowly changing dimension problem</title>
      <link>https://community.qlik.com/t5/QlikView/Slowly-changing-dimension-problem/m-p/248592#M711641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A solution to your problem using IntervalMatch is attached. Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 May 2011 16:12:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Slowly-changing-dimension-problem/m-p/248592#M711641</guid>
      <dc:creator>nagaiank</dc:creator>
      <dc:date>2011-05-28T16:12:06Z</dc:date>
    </item>
    <item>
      <title>Slowly changing dimension problem</title>
      <link>https://community.qlik.com/t5/QlikView/Slowly-changing-dimension-problem/m-p/248593#M711642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nice.&amp;nbsp; What does Replace do here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 May 2011 12:59:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Slowly-changing-dimension-problem/m-p/248593#M711642</guid>
      <dc:creator />
      <dc:date>2011-05-29T12:59:51Z</dc:date>
    </item>
    <item>
      <title>Slowly changing dimension problem</title>
      <link>https://community.qlik.com/t5/QlikView/Slowly-changing-dimension-problem/m-p/248594#M711643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The 'Replace' prefix just drops the table and generates a new table. This is not necessary. I got into the habit of using it to be sure that I am not appending the data to previous data in a table with the same name in the application. The use of Replace is not relevant for implementation of 'IntervalMatch'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 May 2011 13:15:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Slowly-changing-dimension-problem/m-p/248594#M711643</guid>
      <dc:creator>nagaiank</dc:creator>
      <dc:date>2011-05-29T13:15:06Z</dc:date>
    </item>
    <item>
      <title>Slowly changing dimension problem</title>
      <link>https://community.qlik.com/t5/QlikView/Slowly-changing-dimension-problem/m-p/248595#M711644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.&amp;nbsp; How would you retain the Key table and eliminate the $Syn 1 Table?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 May 2011 14:38:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Slowly-changing-dimension-problem/m-p/248595#M711644</guid>
      <dc:creator />
      <dc:date>2011-05-29T14:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: Slowly changing dimension problem</title>
      <link>https://community.qlik.com/t5/QlikView/Slowly-changing-dimension-problem/m-p/248596#M711645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you rename the field Manager in one of the tables, you can avoid the synthetic key and retain the Key table, The revised qvw file is attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 May 2011 15:11:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Slowly-changing-dimension-problem/m-p/248596#M711645</guid>
      <dc:creator>nagaiank</dc:creator>
      <dc:date>2011-05-29T15:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: Slowly changing dimension problem</title>
      <link>https://community.qlik.com/t5/QlikView/Slowly-changing-dimension-problem/m-p/248597#M711646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help. I'm a newbie, but I'm learning a lot.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I want to use a composite key in the Key table and embed the composite key in the Transaction table, is the attached correct?&amp;nbsp; I believe I'm substituting the composite key for the combination of the Department and TDate based on the interval match and then dropping Department from Transaction.&amp;nbsp; If this is correct, is this the most concise way to do this?&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; The results seem to be correct and the model seems easier to read than than allowing a synthetic key table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't get why I need to include all the fields from the Key table in the left join then drop them.&amp;nbsp; Can you tell why this is necessary?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For instance, why is this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left Join (Transact) LOAD DimKey Resident Key;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;not equivalent to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left Join (Transact) LOAD DimKey, Department, Manager, FDate, LDate Resident Key;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Fields Department, Manager, FDate, LDate From Transact;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 May 2011 17:18:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Slowly-changing-dimension-problem/m-p/248597#M711646</guid>
      <dc:creator />
      <dc:date>2011-05-29T17:18:42Z</dc:date>
    </item>
  </channel>
</rss>

