<?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: Interval Match Issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Interval-Match-Issue/m-p/956926#M950006</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The count is 8 though if you use &lt;EM&gt;%Period&lt;/EM&gt; as the Dimension.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Dec 2015 18:54:42 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-12-04T18:54:42Z</dc:date>
    <item>
      <title>Interval Match Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Interval-Match-Issue/m-p/956923#M950003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Hi,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I need to find the number of active associates for a particular period and I am trying to achieve it using the interval match function.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;This is working fine if&amp;nbsp; the combination of DT_ADESAO_PERIOD,DT_CANCEL_PERIOD are distinct in the data set. &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;If the date periods are duplicated, i am not getting the count correctly. Given below is a sample data set contains some duplicate periods.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Can anyone please help on this? &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Please find the code below.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Data:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Load * inline&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;ASSO_ID,DT_ADESAO_PERIOD,DT_CANCEL_PERIOD&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;1,201101,201505&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;2,201101,201201&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;3,201101,201601&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;4,201101,201601&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;5,201102,201601&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;6,201001,201002&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;7,201001,201512&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;8,201301,201601&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;9,201301,201601&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;10,201301,201601&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;11,200901,201102&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;];&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Periods:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp; 201100 + RecNo() AS %Period&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;AUTOGENERATE&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;1;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Join(Data)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;IntervalMatch (%Period)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;DT_ADESAO_PERIOD,DT_CANCEL_PERIOD&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;RESIDENT&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Data;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;DROP Table Periods;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Actually associates active for the period 201101 is 6. But as per the above code, I am getting the count as 8.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;the join is giving issue because of the duplicate date values for different associates.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Can anybody please advise how to handle this situation. How to make the count correct in such scenario.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;How to bring the associate id also in to the condition to avoid this scenario.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Thanks&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;NV.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Dec 2015 17:42:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Interval-Match-Issue/m-p/956923#M950003</guid>
      <dc:creator />
      <dc:date>2015-12-04T17:42:19Z</dc:date>
    </item>
    <item>
      <title>Re: Interval Match Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Interval-Match-Issue/m-p/956924#M950004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would adding a &lt;STRONG style="color: #ff0000;"&gt;Distinct&lt;/STRONG&gt; suffice ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;Join(Data)&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;IntervalMatch (%Period)&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;LOAD &lt;STRONG style="color: #ff0000; font-size: 13.3333px;"&gt;Distinct&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;DT_ADESAO_PERIOD,DT_CANCEL_PERIOD&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;RESIDENT&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;Data;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Dec 2015 18:12:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Interval-Match-Issue/m-p/956924#M950004</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-04T18:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: Interval Match Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Interval-Match-Issue/m-p/956925#M950005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am seeing the count to be 6&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/108138_Capture.PNG" style="height: 199px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Dec 2015 18:15:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Interval-Match-Issue/m-p/956925#M950005</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-12-04T18:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: Interval Match Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Interval-Match-Issue/m-p/956926#M950006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The count is 8 though if you use &lt;EM&gt;%Period&lt;/EM&gt; as the Dimension.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Dec 2015 18:54:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Interval-Match-Issue/m-p/956926#M950006</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-04T18:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: Interval Match Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Interval-Match-Issue/m-p/956927#M950007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Got it &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;. Was not sure which dimension to use &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Dec 2015 18:56:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Interval-Match-Issue/m-p/956927#M950007</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-12-04T18:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: Interval Match Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Interval-Match-Issue/m-p/956928#M950008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And adding DISTINCT did help &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Dec 2015 18:57:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Interval-Match-Issue/m-p/956928#M950008</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-12-04T18:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: Interval Match Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Interval-Match-Issue/m-p/956929#M950009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IntervalMatch() creates a synthetic key which many people don't like.&amp;nbsp; But there is no need to worry about this as it is a g&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;ood &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;synthetic key as &lt;A href="https://community.qlik.com/qlik-users/4003"&gt;hic&lt;/A&gt; advises in this Blog Post, &lt;A href="https://community.qlik.com/qlik-blogpost/3037"&gt;IntervalMatch&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If people really cannot leave it be, as is recommended, with the &lt;SPAN style="font-size: 13.3333px;"&gt;synthetic key, then it needs the &lt;EM&gt;distinct&lt;/EM&gt; to avoid multiple counting.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Dec 2015 19:04:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Interval-Match-Issue/m-p/956929#M950009</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-04T19:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: Interval Match Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Interval-Match-Issue/m-p/956930#M950010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Bill.. The issue is resolved.. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;Appreciate your help !!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Dec 2015 19:23:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Interval-Match-Issue/m-p/956930#M950010</guid>
      <dc:creator />
      <dc:date>2015-12-04T19:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: Interval Match Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Interval-Match-Issue/m-p/956931#M950011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Give it try without the join so it leaves the synthetic key.&amp;nbsp; Safer that way as there may well be other scenarios, &lt;A href="https://community.qlik.com/qlik-users/4003"&gt;hic&lt;/A&gt;‌ may be able to advise.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Dec 2015 19:48:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Interval-Match-Issue/m-p/956931#M950011</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-04T19:48:17Z</dc:date>
    </item>
  </channel>
</rss>

