<?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: IntervalMatch - count does not work when StartMonth = EndMonth but different years in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/IntervalMatch-count-does-not-work-when-StartMonth-EndMonth-but/m-p/466166#M174198</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try something similar to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Load *,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(RepMonth,'MMM-YYYY') as Month-Year,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month(RepMonth) as Month;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Load *,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MakeDate(Year,monthNo) as RepMonth;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Load&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2000 + RecNo() as Year,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IterNo() as monthNo&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Autogenerate 10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; While IterNo() &amp;lt;= 12;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Jun 2013 12:58:08 GMT</pubDate>
    <dc:creator>hic</dc:creator>
    <dc:date>2013-06-12T12:58:08Z</dc:date>
    <item>
      <title>IntervalMatch - count does not work when StartMonth = EndMonth but different years</title>
      <link>https://community.qlik.com/t5/QlikView/IntervalMatch-count-does-not-work-when-StartMonth-EndMonth-but/m-p/466160#M174192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IntervalMatch: IntervalMatch (RepMonth) Load Start_Date_T1, End_Date_T1 Resident ResourceDetails; Hi I am a qlikview newbie... above is the code for my intervalmatch which I used to count employees based on start_date_t1 and end_date_T1... it works on all other scenarios except for the followign scenarios when start month/day = end month/day but different years example 06/01/2013&amp;nbsp; - 06/01/2014... what code should I use so that the range will include this scenario for counting employees... appreciate your response regards Lanie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jun 2013 11:20:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IntervalMatch-count-does-not-work-when-StartMonth-EndMonth-but/m-p/466160#M174192</guid>
      <dc:creator />
      <dc:date>2013-06-12T11:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: IntervalMatch - count does not work when StartMonth = EndMonth but different years</title>
      <link>https://community.qlik.com/t5/QlikView/IntervalMatch-count-does-not-work-when-StartMonth-EndMonth-but/m-p/466161#M174193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The IntervalMatch prefix will create all combinations of the events (RepMonth) and the intervals, and this may mean that you get duplicates when an event belongs to several intervals. You should probably make the count on a field in another table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See more on &lt;A _jive_internal="true" class="loading" href="https://community.qlik.com/blogs/qlikviewdesignblog/2013/04/04/intervalmatch"&gt;http://community.qlik.com/blogs/qlikviewdesignblog/2013/04/04/intervalmatch&lt;/A&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>Wed, 12 Jun 2013 11:33:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IntervalMatch-count-does-not-work-when-StartMonth-EndMonth-but/m-p/466161#M174193</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2013-06-12T11:33:07Z</dc:date>
    </item>
    <item>
      <title>Re: IntervalMatch - count does not work when StartMonth = EndMonth but different years</title>
      <link>https://community.qlik.com/t5/QlikView/IntervalMatch-count-does-not-work-when-StartMonth-EndMonth-but/m-p/466162#M174194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi henric&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have the count on a separate field ,,,here is my qvw file...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jun 2013 11:51:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IntervalMatch-count-does-not-work-when-StartMonth-EndMonth-but/m-p/466162#M174194</guid>
      <dc:creator />
      <dc:date>2013-06-12T11:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: IntervalMatch - count does not work when StartMonth = EndMonth but different years</title>
      <link>https://community.qlik.com/t5/QlikView/IntervalMatch-count-does-not-work-when-StartMonth-EndMonth-but/m-p/466163#M174195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can I add a conditional statement on my intervalmatch load statament so it will exclude the following scenario?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Year(Start_Date_T1)&amp;lt;&amp;gt;Year(End_Date_T1) and Month(Start_Date_T1)=Month(End_Date_T1) and Day(Start_Date_T1)=Day(End_Date_T1)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jun 2013 11:55:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IntervalMatch-count-does-not-work-when-StartMonth-EndMonth-but/m-p/466163#M174195</guid>
      <dc:creator />
      <dc:date>2013-06-12T11:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: IntervalMatch - count does not work when StartMonth = EndMonth but different years</title>
      <link>https://community.qlik.com/t5/QlikView/IntervalMatch-count-does-not-work-when-StartMonth-EndMonth-but/m-p/466164#M174196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could ... but that's not where the problem is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that your RepMonth field contains garbage. It has not been correctly interpreted as dates. In the picture below, I have taken your field RepMonth and formatted it as an ISO date and as a number. There are dates there that you probably don't want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You load these from an Excel file, but I think it would be better to generate them in a Load ... Autogenerate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="42537" class="jive-image-thumbnail jive-image" onclick="" alt="date.png" src="https://community.qlik.com/legacyfs/online/42537_date.png" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jun 2013 12:33:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IntervalMatch-count-does-not-work-when-StartMonth-EndMonth-but/m-p/466164#M174196</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2013-06-12T12:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: IntervalMatch - count does not work when StartMonth = EndMonth but different years</title>
      <link>https://community.qlik.com/t5/QlikView/IntervalMatch-count-does-not-work-when-StartMonth-EndMonth-but/m-p/466165#M174197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks henric.. now I have to figure out how to do the autoload...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jun 2013 12:50:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IntervalMatch-count-does-not-work-when-StartMonth-EndMonth-but/m-p/466165#M174197</guid>
      <dc:creator />
      <dc:date>2013-06-12T12:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: IntervalMatch - count does not work when StartMonth = EndMonth but different years</title>
      <link>https://community.qlik.com/t5/QlikView/IntervalMatch-count-does-not-work-when-StartMonth-EndMonth-but/m-p/466166#M174198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try something similar to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Load *,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(RepMonth,'MMM-YYYY') as Month-Year,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month(RepMonth) as Month;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Load *,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MakeDate(Year,monthNo) as RepMonth;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Load&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2000 + RecNo() as Year,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IterNo() as monthNo&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Autogenerate 10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; While IterNo() &amp;lt;= 12;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jun 2013 12:58:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IntervalMatch-count-does-not-work-when-StartMonth-EndMonth-but/m-p/466166#M174198</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2013-06-12T12:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: IntervalMatch - count does not work when StartMonth = EndMonth but different years</title>
      <link>https://community.qlik.com/t5/QlikView/IntervalMatch-count-does-not-work-when-StartMonth-EndMonth-but/m-p/466167#M174199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks again,, as attached is my updated doc.. however if I click June 2013 it still does not count the employees that fall under these dates&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;June 1,&lt;/SPAN&gt; &lt;STRONG&gt;2013&lt;/STRONG&gt; and &lt;SPAN style="color: #ff0000;"&gt;June 1&lt;/SPAN&gt;&lt;STRONG&gt;,2014&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff00ff;"&gt;January 1&lt;/SPAN&gt;, &lt;STRONG&gt;2013&lt;/STRONG&gt; and &lt;SPAN style="color: #ff00ff;"&gt;January 1&lt;/SPAN&gt;, &lt;STRONG&gt;2014&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my count expression on the Resource Count YTD should include both so it totals 360....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is how it should look like...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="42547" class="jive-image-thumbnail jive-image" onclick="" alt="To-be.JPG" src="https://community.qlik.com/legacyfs/online/42547_To-be.JPG" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but if I select RepMonth=June-2013...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my total looks like the following (which is wrong=&amp;gt; it should be 360 (Temp=118)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="42548" class="jive-image-thumbnail jive-image" onclick="" alt="As-isJune.JPG" src="https://community.qlik.com/legacyfs/online/42548_As-isJune.JPG" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jun 2013 13:28:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IntervalMatch-count-does-not-work-when-StartMonth-EndMonth-but/m-p/466167#M174199</guid>
      <dc:creator />
      <dc:date>2013-06-12T13:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: IntervalMatch - count does not work when StartMonth = EndMonth but different years</title>
      <link>https://community.qlik.com/t5/QlikView/IntervalMatch-count-does-not-work-when-StartMonth-EndMonth-but/m-p/466168#M174200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi henric,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;its working now.. apparently i have some wrong start dates.. which is supposed to be June 1, 2013 but is written as June 4, 2013...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jun 2013 13:47:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IntervalMatch-count-does-not-work-when-StartMonth-EndMonth-but/m-p/466168#M174200</guid>
      <dc:creator />
      <dc:date>2013-06-12T13:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: IntervalMatch - count does not work when StartMonth = EndMonth but different years</title>
      <link>https://community.qlik.com/t5/QlikView/IntervalMatch-count-does-not-work-when-StartMonth-EndMonth-but/m-p/466169#M174201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just saw that too. Neither of the two "faulty" resources have June 1st 2013 within their ranges.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jun 2013 13:49:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IntervalMatch-count-does-not-work-when-StartMonth-EndMonth-but/m-p/466169#M174201</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2013-06-12T13:49:14Z</dc:date>
    </item>
  </channel>
</rss>

