<?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/80627#M769119</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From what I understand, the script is doing a interval match on dates, but these dates might have looked like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FromDate,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ToDate&lt;/P&gt;&lt;P&gt;01/01/2018&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 02/01/2018&lt;/P&gt;&lt;P&gt;02/01/2018&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 03/01/2018&lt;/P&gt;&lt;P&gt;03/01/2018&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 04/01/2018&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you might see 02/01/2018 is found in both Row1 and Row2... in order to solve this problem, the script is subtracting a very very small number from 02/01/2018 in the first row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pow() is just a power function. So, 2 raise to the power of -37 is what we are subtracting from ToDate to make it slighly less than 02/01/2018... may be like 01/31/2018 23:59:59 and some micro seconds....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Jun 2018 15:29:39 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-06-11T15:29:39Z</dc:date>
    <item>
      <title>Slowly Changing Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Slowly-Changing-Dimension/m-p/80626#M769118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can anyone explain me this part ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12pt;"&gt;Let vEpsilon = Pow(2,-37);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12pt;"&gt;Autonumber(SPID &amp;amp; '|' &amp;amp; FromDate &amp;amp; '|' &amp;amp; ToDate) as [SPID+Interval],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;*;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Date#(FromDate, 'YYYY-MM-DD') as FromDate,&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12pt;"&gt;Date(Date#(ToDate, 'YYYY-MM-DD') - $(#vEpsilon)) as ToDate,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why we are using this Pow()?....&lt;SPAN style="font-size: 13.3333px;"&gt;Why we are subtracting this variable &lt;/SPAN&gt;&lt;STRONG style="font-size: 12pt;"&gt;vEpsilon?&lt;/STRONG&gt;&amp;nbsp; What is the need?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12pt;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12pt;"&gt;Attachment for full coding&lt;/STRONG&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/Slowly-Changing-Dimension/m-p/80626#M769118</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Slowly Changing Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Slowly-Changing-Dimension/m-p/80627#M769119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From what I understand, the script is doing a interval match on dates, but these dates might have looked like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FromDate,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ToDate&lt;/P&gt;&lt;P&gt;01/01/2018&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 02/01/2018&lt;/P&gt;&lt;P&gt;02/01/2018&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 03/01/2018&lt;/P&gt;&lt;P&gt;03/01/2018&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 04/01/2018&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you might see 02/01/2018 is found in both Row1 and Row2... in order to solve this problem, the script is subtracting a very very small number from 02/01/2018 in the first row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pow() is just a power function. So, 2 raise to the power of -37 is what we are subtracting from ToDate to make it slighly less than 02/01/2018... may be like 01/31/2018 23:59:59 and some micro seconds....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jun 2018 15:29:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Slowly-Changing-Dimension/m-p/80627#M769119</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-06-11T15:29:39Z</dc:date>
    </item>
  </channel>
</rss>

