<?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 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Slowly-changing-dimension/m-p/442480#M164931</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you G! I will need some time to analyse this and will get back to you ASAP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 17 Nov 2012 09:21:47 GMT</pubDate>
    <dc:creator>jvitantonio</dc:creator>
    <dc:date>2012-11-17T09:21:47Z</dc:date>
    <item>
      <title>Slowly changing dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Slowly-changing-dimension/m-p/442476#M164927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a really complex model where I need to use slowly changing dimensions. I have a Dimension table, that use the same code but different description depening on dates. Ex: From Jan-Mar the description for code 44444 is "Desc1" and for Apr-Jun the description for the same code is "Desc2".&lt;/P&gt;&lt;P&gt;Now, I join this table to my fact and want to make different analysis depending on the date of my fact table and of couse I should show the correct description according to the date. I did a simple example and it work, but I cannot get it work with complex date selections and would like to know your opinion. I attach a really simple example that pictures my situation and the type of analysis I need to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and I hope you can help me out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2012 20:17:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Slowly-changing-dimension/m-p/442476#M164927</guid>
      <dc:creator>jvitantonio</dc:creator>
      <dc:date>2012-11-16T20:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: Slowly changing dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Slowly-changing-dimension/m-p/442477#M164928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using the intervalmatch function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;Code, &lt;/P&gt;&lt;P&gt;date(Date_From, 'DD/MM/YYYY') AS Date_From, &lt;/P&gt;&lt;P&gt;date(Date_To, 'DD/MM/YYYY') as Date_To, Description&lt;/P&gt;&lt;P&gt; INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Code, Date_From, Date_To, Description&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; A, 01/01/2012, 28/02/2012, CodeXX&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; A, 01/03/2012, 31/05/2012, CodeYY&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fact:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;Code, date(Date,'DD/MM/YYYY') AS Date, Value&lt;/P&gt;&lt;P&gt; INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Code, Date, Value&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; A, 01/01/2012, 10&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; A, 03/01/2012, 20&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; A, 03/03/2012, 15&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; A, 01/05/2012, 70&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Left join (Fact)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;IntervalMatch(Date) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;load Date_From, Date_To&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Resident Dimension;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join(Fact)&lt;/P&gt;&lt;P&gt;load * &lt;/P&gt;&lt;P&gt;Resident Dimension;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table Dimension;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2012 20:34:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Slowly-changing-dimension/m-p/442477#M164928</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2012-11-16T20:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: Slowly changing dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Slowly-changing-dimension/m-p/442478#M164929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi G, thanks for you time. I should&amp;nbsp; have mentioned this in my first post but interval match is not an option here. This need to be done within the graphics/tables. Your solution would work if in my dimension table I use different codes. So you match each code depending on the dates. In my model I have the same code with different description. &lt;/P&gt;&lt;P&gt;Also in your example you drop the dimension table. I cannot do this because I also manage multilanguage records, so I need to have the tables separte otherwise my fact table becomes really dirty. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any other idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for you time and hope to hear from you soon.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2012 21:35:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Slowly-changing-dimension/m-p/442478#M164929</guid>
      <dc:creator>jvitantonio</dc:creator>
      <dc:date>2012-11-16T21:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: Slowly changing dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Slowly-changing-dimension/m-p/442479#M164930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you're wrong about some things. First of all if you have to deal with slowly changing dimension using intervalmatch is pretty much the only sensible approach afaik. Unless you want to do your ETL in another tool (which will probably do the same, but in a way you don't see it). I also think you may be a little too much wedded to the fact - dimension table divide. It doesn't always make sense to strictly adher to that divide in Qlikview. However,&amp;nbsp; if you think you must keep your fact table 'clean' have a look at the attached qvw. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Nov 2012 08:39:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Slowly-changing-dimension/m-p/442479#M164930</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2012-11-17T08:39:57Z</dc:date>
    </item>
    <item>
      <title>Re: Slowly changing dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Slowly-changing-dimension/m-p/442480#M164931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you G! I will need some time to analyse this and will get back to you ASAP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Nov 2012 09:21:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Slowly-changing-dimension/m-p/442480#M164931</guid>
      <dc:creator>jvitantonio</dc:creator>
      <dc:date>2012-11-17T09:21:47Z</dc:date>
    </item>
  </channel>
</rss>

