<?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 Get Year-Month range from start and end dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Get-Year-Month-range-from-start-and-end-dates/m-p/84833#M13959</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've got a QVD (attached) with a &lt;STRONG&gt;start&lt;/STRONG&gt; and &lt;STRONG&gt;end&lt;/STRONG&gt; date. I need to create a new field as per &lt;STRONG&gt;Obligation_Period&lt;/STRONG&gt; below using these two fields, so a YYYY-MMM of the &lt;STRONG&gt;start&lt;/STRONG&gt; date, and &lt;SPAN style="font-size: 13.3333px;"&gt;a YYYY-MMM of the month before the &lt;STRONG&gt;end &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;date, and all the months between. All concatenated with a nice delimiter such as ; in the same field&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="obligationperiods.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/197467_obligationperiods.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas? I cannot just do a start +1 month, start +2 month etc because the start and end ranges may vary in length.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Mar 2018 10:33:01 GMT</pubDate>
    <dc:creator>shane_spencer</dc:creator>
    <dc:date>2018-03-26T10:33:01Z</dc:date>
    <item>
      <title>Get Year-Month range from start and end dates</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Year-Month-range-from-start-and-end-dates/m-p/84833#M13959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've got a QVD (attached) with a &lt;STRONG&gt;start&lt;/STRONG&gt; and &lt;STRONG&gt;end&lt;/STRONG&gt; date. I need to create a new field as per &lt;STRONG&gt;Obligation_Period&lt;/STRONG&gt; below using these two fields, so a YYYY-MMM of the &lt;STRONG&gt;start&lt;/STRONG&gt; date, and &lt;SPAN style="font-size: 13.3333px;"&gt;a YYYY-MMM of the month before the &lt;STRONG&gt;end &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;date, and all the months between. All concatenated with a nice delimiter such as ; in the same field&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="obligationperiods.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/197467_obligationperiods.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas? I cannot just do a start +1 month, start +2 month etc because the start and end ranges may vary in length.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2018 10:33:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Year-Month-range-from-start-and-end-dates/m-p/84833#M13959</guid>
      <dc:creator>shane_spencer</dc:creator>
      <dc:date>2018-03-26T10:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: Get Year-Month range from start and end dates</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Year-Month-range-from-start-and-end-dates/m-p/84834#M13960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD start, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; due, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; status, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; received, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; periodKey,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Concat(Obligation_Period, ';', Obligation_Period) as Obligation_Period&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Group By start, end, due, status, received, periodKey;;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD start, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; due, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; status, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; received, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; periodKey,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(MonthStart(start, IterNo() - 1), 'YYYY-MMM') as Obligation_Period&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM [..\..\Downloads\obligations.qvd] (qvd)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;While MonthStart(start, IterNo() - 1) &amp;lt; MonthStart(end);&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2018 11:46:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Year-Month-range-from-start-and-end-dates/m-p/84834#M13960</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-03-26T11:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: Get Year-Month range from start and end dates</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Year-Month-range-from-start-and-end-dates/m-p/84835#M13961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome! Thanks Sunny!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2018 12:03:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Year-Month-range-from-start-and-end-dates/m-p/84835#M13961</guid>
      <dc:creator>shane_spencer</dc:creator>
      <dc:date>2018-03-26T12:03:19Z</dc:date>
    </item>
  </channel>
</rss>

