<?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: How to insert month in date intervals ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-insert-month-in-date-intervals/m-p/1554221#M508943</link>
    <description>&lt;P&gt;Try this&lt;/P&gt;&lt;PRE&gt;Table:
LOAD * INLINE [
    SMIC_MonthEffect, SMIC_Rate
    01/01/2014, 9.53
    01/01/2015, 9.61
    01/01/2016, 9.67
    01/01/2017, 9.76
    01/01/2018, 9.88
    01/01/2019, 10.03
];

FinalTable:
LOAD MonthStart(SMIC_MonthEffect, IterNo() - 1) as SMIC_Month,
	 SMIC_Rate
While MonthStart(SMIC_MonthEffect, IterNo() - 1) &amp;lt; End;
LOAD SMIC_MonthEffect,
	 SMIC_Rate,
	 Date(Alt(Peek('SMIC_MonthEffect'), MonthEnd(Today()))) as End
Resident Table
Order By SMIC_MonthEffect desc;

DROP Table Table;&lt;/PRE&gt;</description>
    <pubDate>Fri, 08 Mar 2019 12:35:44 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2019-03-08T12:35:44Z</dc:date>
    <item>
      <title>How to insert month in date intervals ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-insert-month-in-date-intervals/m-p/1554133#M508942</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a rate list with the month effect (in blue), and I'm looking for a list with every month and rates applied (in green).&lt;/P&gt;&lt;P&gt;Thank you !&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 750px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/7590i696273402B85EBE8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:14:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-insert-month-in-date-intervals/m-p/1554133#M508942</guid>
      <dc:creator>ArnaudTML</dc:creator>
      <dc:date>2024-11-16T04:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert month in date intervals ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-insert-month-in-date-intervals/m-p/1554221#M508943</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;&lt;PRE&gt;Table:
LOAD * INLINE [
    SMIC_MonthEffect, SMIC_Rate
    01/01/2014, 9.53
    01/01/2015, 9.61
    01/01/2016, 9.67
    01/01/2017, 9.76
    01/01/2018, 9.88
    01/01/2019, 10.03
];

FinalTable:
LOAD MonthStart(SMIC_MonthEffect, IterNo() - 1) as SMIC_Month,
	 SMIC_Rate
While MonthStart(SMIC_MonthEffect, IterNo() - 1) &amp;lt; End;
LOAD SMIC_MonthEffect,
	 SMIC_Rate,
	 Date(Alt(Peek('SMIC_MonthEffect'), MonthEnd(Today()))) as End
Resident Table
Order By SMIC_MonthEffect desc;

DROP Table Table;&lt;/PRE&gt;</description>
      <pubDate>Fri, 08 Mar 2019 12:35:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-insert-month-in-date-intervals/m-p/1554221#M508943</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-03-08T12:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert month in date intervals ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-insert-month-in-date-intervals/m-p/1554269#M508944</link>
      <description>&lt;P&gt;Thanks for your help but there is a problem : values are doubled as soon as we move on to the next year (in 2019, there are 6 different)...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tempsnip.jpg" style="width: 280px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/7614iA6B2383D5E3ADAFD/image-size/large?v=v2&amp;amp;px=999" role="button" title="tempsnip.jpg" alt="tempsnip.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2019 13:56:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-insert-month-in-date-intervals/m-p/1554269#M508944</guid>
      <dc:creator>ArnaudTML</dc:creator>
      <dc:date>2019-03-08T13:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert month in date intervals ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-insert-month-in-date-intervals/m-p/1554302#M508945</link>
      <description>&lt;P&gt;My bad, try this&lt;/P&gt;&lt;PRE&gt;Table:
LOAD * INLINE [
    SMIC_MonthEffect, SMIC_Rate
    01/01/2014, 9.53
    01/01/2015, 9.61
    01/01/2016, 9.67
    01/01/2017, 9.76
    01/01/2018, 9.88
    01/01/2019, 10.03
];

TempTable:
LOAD SMIC_MonthEffect,
	 SMIC_Rate,
	 Date(Alt(Peek('SMIC_MonthEffect'), MonthEnd(Today()))) as End
Resident Table
Order By SMIC_MonthEffect desc;

FinalTable:
LOAD MonthStart(SMIC_MonthEffect, IterNo() - 1) as SMIC_Month,
	 IterNo() as IterNo,
	 SMIC_MonthEffect,
	 SMIC_Rate,
	 End
Resident TempTable
While MonthStart(SMIC_MonthEffect, IterNo() - 1) &amp;lt; End;

DROP Tables Table, TempTable;&lt;/PRE&gt;</description>
      <pubDate>Fri, 08 Mar 2019 14:53:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-insert-month-in-date-intervals/m-p/1554302#M508945</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-03-08T14:53:06Z</dc:date>
    </item>
  </channel>
</rss>

