<?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 Autogenerate Quarters and Months in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Autogenerate-Quarters-and-Months/m-p/1236736#M621923</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using the following script to make quarters:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set vStartDate = date(date#('31-Dec-2009','DD-MMM-YYYY'));&lt;/P&gt;&lt;P&gt;set vEndDate = date(date#('31-Dec-2015','DD-MMM-YYYY'));&lt;/P&gt;&lt;P&gt;set vNoQuarters = ($(vEndDate) - $(vStartDate))/(365/4) + 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Valuation_Quarter:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp; addmonths($(vStartDate),(iterno()-1)*3) as Valuation_Quarter&lt;/P&gt;&lt;P&gt;autogenerate 1&amp;nbsp; while iterno()&amp;lt;= $(vNoQuarters);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works. I want to make months in a similar manner like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set vStartDate = date(date#('31-Dec-2009','DD-MMM-YYYY'));&lt;/P&gt;&lt;P&gt;set vEndDate = date(date#('31-Dec-2015','DD-MMM-YYYY'));&lt;/P&gt;&lt;P&gt;set vNoQuarters = ($(vEndDate) - $(vStartDate))/(365/4) + 1;&lt;/P&gt;&lt;P&gt;set vNoMonths = year($(vEndDate))*12 - year($(vStartDate))*12 + month($(vEndDate)) - month($(vStartDate)) + 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Valuation_Quarter:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp; addmonths($(vStartDate),(iterno()-1)*3) as Valuation_Quarter&lt;/P&gt;&lt;P&gt;autogenerate 1&amp;nbsp; while iterno()&amp;lt;= $(vNoQuarters);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Valuation_Months:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&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; addmonths($(vStartDate),(iterno()-1)*1) as Valuation_Months&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;autogenerate 1&amp;nbsp; while iterno()&amp;lt;= $(vNoMonths);&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;By using this, I'm getting "Out of Object Memory" error. Any solution for this? Or if you can suggest any easier alternative to autogenerate quarters and months, please do.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Thanks and Regards,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Kashif&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Feb 2017 13:57:14 GMT</pubDate>
    <dc:creator>kash04kk</dc:creator>
    <dc:date>2017-02-08T13:57:14Z</dc:date>
    <item>
      <title>Autogenerate Quarters and Months</title>
      <link>https://community.qlik.com/t5/QlikView/Autogenerate-Quarters-and-Months/m-p/1236736#M621923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using the following script to make quarters:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set vStartDate = date(date#('31-Dec-2009','DD-MMM-YYYY'));&lt;/P&gt;&lt;P&gt;set vEndDate = date(date#('31-Dec-2015','DD-MMM-YYYY'));&lt;/P&gt;&lt;P&gt;set vNoQuarters = ($(vEndDate) - $(vStartDate))/(365/4) + 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Valuation_Quarter:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp; addmonths($(vStartDate),(iterno()-1)*3) as Valuation_Quarter&lt;/P&gt;&lt;P&gt;autogenerate 1&amp;nbsp; while iterno()&amp;lt;= $(vNoQuarters);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works. I want to make months in a similar manner like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set vStartDate = date(date#('31-Dec-2009','DD-MMM-YYYY'));&lt;/P&gt;&lt;P&gt;set vEndDate = date(date#('31-Dec-2015','DD-MMM-YYYY'));&lt;/P&gt;&lt;P&gt;set vNoQuarters = ($(vEndDate) - $(vStartDate))/(365/4) + 1;&lt;/P&gt;&lt;P&gt;set vNoMonths = year($(vEndDate))*12 - year($(vStartDate))*12 + month($(vEndDate)) - month($(vStartDate)) + 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Valuation_Quarter:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp; addmonths($(vStartDate),(iterno()-1)*3) as Valuation_Quarter&lt;/P&gt;&lt;P&gt;autogenerate 1&amp;nbsp; while iterno()&amp;lt;= $(vNoQuarters);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Valuation_Months:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&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; addmonths($(vStartDate),(iterno()-1)*1) as Valuation_Months&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;autogenerate 1&amp;nbsp; while iterno()&amp;lt;= $(vNoMonths);&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;By using this, I'm getting "Out of Object Memory" error. Any solution for this? Or if you can suggest any easier alternative to autogenerate quarters and months, please do.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Thanks and Regards,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Kashif&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2017 13:57:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Autogenerate-Quarters-and-Months/m-p/1236736#M621923</guid>
      <dc:creator>kash04kk</dc:creator>
      <dc:date>2017-02-08T13:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: Autogenerate Quarters and Months</title>
      <link>https://community.qlik.com/t5/QlikView/Autogenerate-Quarters-and-Months/m-p/1236737#M621924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it would be easier to create month and quarters within a master-calendar. Here you will find many informations about &lt;A href="https://community.qlik.com/docs/DOC-8843"&gt;How to use - Master-Calendar and Date-Values&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2017 14:09:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Autogenerate-Quarters-and-Months/m-p/1236737#M621924</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-02-08T14:09:46Z</dc:date>
    </item>
  </channel>
</rss>

