<?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: Date loop with outstanding case in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-loop-with-outstanding-case/m-p/1659133#M730301</link>
    <description>&lt;P&gt;I think it's:&lt;/P&gt;&lt;P class="p1"&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;Concatenate&lt;/SPAN&gt; (Trans)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;LOAD&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s2"&gt;&amp;nbsp; ID&lt;/SPAN&gt;,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s2"&gt;&amp;nbsp; Status&lt;/SPAN&gt;,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; 1 &lt;SPAN class="s1"&gt;as&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;Generated&lt;/SPAN&gt;, &lt;SPAN class="s3"&gt;// For debugging&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;&amp;nbsp; MonthStart&lt;/SPAN&gt;(&lt;SPAN class="s1"&gt;AddMonths&lt;/SPAN&gt;(&lt;SPAN class="s2"&gt;Date&lt;/SPAN&gt;, &lt;SPAN class="s1"&gt;IterNo&lt;/SPAN&gt;())) &lt;SPAN class="s1"&gt;as&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;Date&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;Resident&lt;/SPAN&gt; Trans&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;While&lt;/SPAN&gt; &lt;SPAN class="s1"&gt;MonthEnd&lt;/SPAN&gt;(&lt;SPAN class="s1"&gt;AddMonths&lt;/SPAN&gt;(&lt;SPAN class="s2"&gt;Date&lt;/SPAN&gt;, &lt;SPAN class="s1"&gt;IterNo&lt;/SPAN&gt;())) &amp;lt; &lt;SPAN class="s1"&gt;peek&lt;/SPAN&gt;('Date', &lt;SPAN class="s1"&gt;RecNo&lt;/SPAN&gt;(), 'Trans')&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;And&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;ID&lt;/SPAN&gt; = &lt;SPAN class="s1"&gt;peek&lt;/SPAN&gt;('ID', &lt;SPAN class="s1"&gt;RecNo&lt;/SPAN&gt;(), 'Trans')&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;And&lt;/SPAN&gt; &lt;SPAN class="s1"&gt;peek&lt;/SPAN&gt;('Status', &lt;SPAN class="s1"&gt;RecNo&lt;/SPAN&gt;(), 'Trans') = 'Closed'&lt;/FONT&gt;&lt;BR /&gt;;&lt;/P&gt;&lt;P class="p1"&gt;-Rob&lt;BR /&gt;&lt;A href="http://masterssummit.com" target="_blank" rel="noopener"&gt;http://masterssummit.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://qlikviewcookbook.com" target="_blank" rel="noopener"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.easyqlik.com" target="_blank" rel="noopener"&gt;http://www.easyqlik.com&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 18 Dec 2019 19:14:09 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2019-12-18T19:14:09Z</dc:date>
    <item>
      <title>Date loop with outstanding case</title>
      <link>https://community.qlik.com/t5/QlikView/Date-loop-with-outstanding-case/m-p/1656405#M730296</link>
      <description>&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;we have to Date loop based on outstanding case.&lt;/P&gt;&lt;P&gt;please have a look below screens&lt;/P&gt;&lt;P&gt;1. for ID = 1000, status has &lt;STRONG&gt;Qlikview&lt;/STRONG&gt; and &lt;STRONG&gt;Closed&lt;/STRONG&gt; - thus this is outstanding record.&lt;/P&gt;&lt;P&gt;which has the status updated to &lt;STRONG&gt;Closed&lt;/STRONG&gt;, those records are outstanding.&amp;nbsp;&lt;/P&gt;&lt;P&gt;so here, we have to loop start date (12/07/2019) to end date (26/09/2019) - value 250 should be in &lt;STRONG&gt;July, Aug &lt;/STRONG&gt;and&lt;STRONG&gt; Sep&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 422px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/25331i8E267D15D603BDEA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; for ID=1001, status had &lt;STRONG&gt;Qlik sense&lt;/STRONG&gt; and &lt;STRONG&gt;QS Pending -&amp;nbsp;&lt;/STRONG&gt;this is not a outstanding record.&lt;/P&gt;&lt;P&gt;we don't need to loop this record, status has still pending.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.PNG" style="width: 429px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/25332i549DA16FDACDCB31/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.PNG" alt="2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;3.&amp;nbsp; this is the outstanding record, status has updated&amp;nbsp;&lt;STRONG&gt;closed&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;this should be show in &lt;STRONG&gt;Aug, Sep &lt;/STRONG&gt;and &lt;STRONG&gt;Oct&lt;/STRONG&gt; month.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3.PNG" style="width: 424px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/25333iFBD4A9D69C3031D5/image-size/large?v=v2&amp;amp;px=999" role="button" title="3.PNG" alt="3.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have written script for date loop, but it is taking Jan to Dec.&amp;nbsp; (I think we have to calculate &lt;STRONG&gt;Min and Max date&lt;/STRONG&gt;, and group by with &lt;STRONG&gt;ID&lt;/STRONG&gt;) - I tried, but No luck.&lt;/P&gt;&lt;P&gt;FOR i = 2019 to 2019&lt;BR /&gt;&amp;nbsp; &amp;nbsp; FOR k = 1 to 12&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;LET vDATE = MakeDate(i, k);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;DATELOOP:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;LOAD ID,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;'$(vDATE)' as Date1&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Resident Trans&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Where Status='Closed';&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;NEXT k;&lt;BR /&gt;NEXT i;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks In advance..&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:43:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-loop-with-outstanding-case/m-p/1656405#M730296</guid>
      <dc:creator>Nagaraju_KCS</dc:creator>
      <dc:date>2024-11-16T01:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: Date loop with outstanding case</title>
      <link>https://community.qlik.com/t5/QlikView/Date-loop-with-outstanding-case/m-p/1656563#M730297</link>
      <description>&lt;P&gt;Experts! can you please help me&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2019 14:33:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-loop-with-outstanding-case/m-p/1656563#M730297</guid>
      <dc:creator>Nagaraju_KCS</dc:creator>
      <dc:date>2019-12-11T14:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: Date loop with outstanding case</title>
      <link>https://community.qlik.com/t5/QlikView/Date-loop-with-outstanding-case/m-p/1656576#M730298</link>
      <description>&lt;P&gt;What are you trying here?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2019 14:47:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-loop-with-outstanding-case/m-p/1656576#M730298</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2019-12-11T14:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: Date loop with outstanding case</title>
      <link>https://community.qlik.com/t5/QlikView/Date-loop-with-outstanding-case/m-p/1656602#M730299</link>
      <description>&lt;P&gt;Hi Anil,&lt;/P&gt;&lt;P&gt;Thanks for respond..&lt;/P&gt;&lt;P&gt;for&lt;STRONG&gt; ID-1000&lt;/STRONG&gt;, my status has &lt;STRONG&gt;Qlikview&lt;/STRONG&gt; and &lt;STRONG&gt;Closed (&lt;/STRONG&gt;which i have highlighted in yellow, we have to loop between Months &lt;STRONG&gt;7 &lt;/STRONG&gt;to&lt;STRONG&gt; 9&lt;/STRONG&gt;)&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please note which has the status updated to &lt;STRONG&gt;Closed&lt;/STRONG&gt;, those records only we have to loop between months.&lt;/P&gt;&lt;P&gt;Status Qlikview has opened at &lt;STRONG&gt;12/07/2019&lt;/STRONG&gt; and Closed at &lt;STRONG&gt;26/09/2019 - we have missed Aug month&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="5.PNG" style="width: 437px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/25359iF1293FF6025FC280/image-size/large?v=v2&amp;amp;px=999" role="button" title="5.PNG" alt="5.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Output&lt;/STRONG&gt;: we have to fill same record with &lt;STRONG&gt;Aug&lt;/STRONG&gt; Month.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="4.PNG" style="width: 242px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/25357i50F1885D71A2D186/image-size/large?v=v2&amp;amp;px=999" role="button" title="4.PNG" alt="4.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Same as 1005 example..&lt;/P&gt;&lt;P&gt;Hope you understand!&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2019 15:17:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-loop-with-outstanding-case/m-p/1656602#M730299</guid>
      <dc:creator>Nagaraju_KCS</dc:creator>
      <dc:date>2019-12-11T15:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: Date loop with outstanding case</title>
      <link>https://community.qlik.com/t5/QlikView/Date-loop-with-outstanding-case/m-p/1657979#M730300</link>
      <description>&lt;P&gt;Does it mean that, Whenever you have Qlikview and Status closed per ID you want generate missing dates? as an example, For ID = 1000, You want all dates or is that something missing months with previous record.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2019 11:24:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-loop-with-outstanding-case/m-p/1657979#M730300</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2019-12-16T11:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: Date loop with outstanding case</title>
      <link>https://community.qlik.com/t5/QlikView/Date-loop-with-outstanding-case/m-p/1659133#M730301</link>
      <description>&lt;P&gt;I think it's:&lt;/P&gt;&lt;P class="p1"&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;Concatenate&lt;/SPAN&gt; (Trans)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;LOAD&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s2"&gt;&amp;nbsp; ID&lt;/SPAN&gt;,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s2"&gt;&amp;nbsp; Status&lt;/SPAN&gt;,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; 1 &lt;SPAN class="s1"&gt;as&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;Generated&lt;/SPAN&gt;, &lt;SPAN class="s3"&gt;// For debugging&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;&amp;nbsp; MonthStart&lt;/SPAN&gt;(&lt;SPAN class="s1"&gt;AddMonths&lt;/SPAN&gt;(&lt;SPAN class="s2"&gt;Date&lt;/SPAN&gt;, &lt;SPAN class="s1"&gt;IterNo&lt;/SPAN&gt;())) &lt;SPAN class="s1"&gt;as&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;Date&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;Resident&lt;/SPAN&gt; Trans&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;While&lt;/SPAN&gt; &lt;SPAN class="s1"&gt;MonthEnd&lt;/SPAN&gt;(&lt;SPAN class="s1"&gt;AddMonths&lt;/SPAN&gt;(&lt;SPAN class="s2"&gt;Date&lt;/SPAN&gt;, &lt;SPAN class="s1"&gt;IterNo&lt;/SPAN&gt;())) &amp;lt; &lt;SPAN class="s1"&gt;peek&lt;/SPAN&gt;('Date', &lt;SPAN class="s1"&gt;RecNo&lt;/SPAN&gt;(), 'Trans')&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;And&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;ID&lt;/SPAN&gt; = &lt;SPAN class="s1"&gt;peek&lt;/SPAN&gt;('ID', &lt;SPAN class="s1"&gt;RecNo&lt;/SPAN&gt;(), 'Trans')&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;And&lt;/SPAN&gt; &lt;SPAN class="s1"&gt;peek&lt;/SPAN&gt;('Status', &lt;SPAN class="s1"&gt;RecNo&lt;/SPAN&gt;(), 'Trans') = 'Closed'&lt;/FONT&gt;&lt;BR /&gt;;&lt;/P&gt;&lt;P class="p1"&gt;-Rob&lt;BR /&gt;&lt;A href="http://masterssummit.com" target="_blank" rel="noopener"&gt;http://masterssummit.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://qlikviewcookbook.com" target="_blank" rel="noopener"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.easyqlik.com" target="_blank" rel="noopener"&gt;http://www.easyqlik.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Dec 2019 19:14:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-loop-with-outstanding-case/m-p/1659133#M730301</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2019-12-18T19:14:09Z</dc:date>
    </item>
  </channel>
</rss>

