<?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: Autogenerate quarters in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Autogenerate-quarters/m-p/938901#M1256091</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or maybe like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;set vStartDate=date(date#('3/31/2011','M/DD/YYYY')) ;&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;set vNoQuarters = 17 ;&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;QuarterEnd:&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;Load&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;&amp;nbsp; addmonths($(vStartDate),(iterno()-1)*3) as QuarterEnd&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;autogenerate 1&amp;nbsp; while iterno()&amp;lt;= $(vNoQuarters)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 13 Sep 2015 10:43:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-09-13T10:43:04Z</dc:date>
    <item>
      <title>Autogenerate quarters</title>
      <link>https://community.qlik.com/t5/QlikView/Autogenerate-quarters/m-p/938899#M1256083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to autogenerate the quarter end of the dates. Currently, i'm using them in script like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load * inline&lt;/P&gt;&lt;P&gt;[valuation_date&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;3/31/2011&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;6/30/2011&lt;/P&gt;&lt;P&gt;9/30/2011&lt;/P&gt;&lt;P&gt;12/31/2011&lt;/P&gt;&lt;P&gt;3/31/2012&lt;/P&gt;&lt;P&gt;6/30/2012&lt;/P&gt;&lt;P&gt;9/30/2012&lt;/P&gt;&lt;P&gt;12/31/2012&lt;/P&gt;&lt;P&gt;3/31/2013&lt;/P&gt;&lt;P&gt;6/30/2013&lt;/P&gt;&lt;P&gt;9/30/2013&lt;/P&gt;&lt;P&gt;12/31/2013&lt;/P&gt;&lt;P&gt;3/31/2014&lt;/P&gt;&lt;P&gt;6/30/2014&lt;/P&gt;&lt;P&gt;9/30/2014&lt;/P&gt;&lt;P&gt;12/31/2014&lt;/P&gt;&lt;P&gt;3/31/2015&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kashif&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2026 18:19:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Autogenerate-quarters/m-p/938899#M1256083</guid>
      <dc:creator>kash04kk</dc:creator>
      <dc:date>2026-01-26T18:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Autogenerate quarters</title>
      <link>https://community.qlik.com/t5/QlikView/Autogenerate-quarters/m-p/938900#M1256087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use QuarterEnd() Function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try below script in QlikView&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;Year(Date) as Year,&lt;/P&gt;&lt;P&gt;QuarterStart(Date) as QuarterStart,&lt;/P&gt;&lt;P&gt;QuarterEnd(Date) as QuarterEnd;&lt;/P&gt;&lt;P&gt;LOAD date(MakeDate(2013)+IterNo()-1) as Date,&lt;/P&gt;&lt;P&gt;ceil(Rand()*100+1000) as Amount&lt;/P&gt;&lt;P&gt;AutoGenerate(1)&lt;/P&gt;&lt;P&gt;While MakeDate(2013)+IterNo()-1&amp;lt;=Today();&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/98754_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Sep 2015 10:40:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Autogenerate-quarters/m-p/938900#M1256087</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2015-09-13T10:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: Autogenerate quarters</title>
      <link>https://community.qlik.com/t5/QlikView/Autogenerate-quarters/m-p/938901#M1256091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or maybe like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;set vStartDate=date(date#('3/31/2011','M/DD/YYYY')) ;&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;set vNoQuarters = 17 ;&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;QuarterEnd:&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;Load&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;&amp;nbsp; addmonths($(vStartDate),(iterno()-1)*3) as QuarterEnd&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;autogenerate 1&amp;nbsp; while iterno()&amp;lt;= $(vNoQuarters)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Sep 2015 10:43:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Autogenerate-quarters/m-p/938901#M1256091</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-13T10:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: Autogenerate quarters</title>
      <link>https://community.qlik.com/t5/QlikView/Autogenerate-quarters/m-p/938902#M1256095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Bill,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;This script worked. Thanks a lot!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you explain briefly what does iterno() mean?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Sep 2015 10:58:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Autogenerate-quarters/m-p/938902#M1256095</guid>
      <dc:creator>kash04kk</dc:creator>
      <dc:date>2015-09-13T10:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: Autogenerate quarters</title>
      <link>https://community.qlik.com/t5/QlikView/Autogenerate-quarters/m-p/938903#M1256096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The &lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&lt;SPAN style="color: #993300;"&gt;while iterno()&amp;lt;= $(vNoQuarters)&lt;/SPAN&gt; &lt;/EM&gt;means that each record will be evaluated until &lt;EM style="color: #993300; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;iterno() &lt;/EM&gt;&lt;SPAN style="color: #575757;"&gt;is greater than&lt;/SPAN&gt;&lt;EM style="color: #993300; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; $(vNoQuarters).&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;During these iterations &lt;EM style="color: #993300; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;iterno() &lt;/EM&gt;returns 1 for the first record and then increments by 1 for each record, i.e. it acts as a counter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 08:53:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Autogenerate-quarters/m-p/938903#M1256096</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-14T08:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: Autogenerate quarters</title>
      <link>https://community.qlik.com/t5/QlikView/Autogenerate-quarters/m-p/938904#M1256097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;will iterno() always return 1 for the first record?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 08:55:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Autogenerate-quarters/m-p/938904#M1256097</guid>
      <dc:creator>kash04kk</dc:creator>
      <dc:date>2015-09-14T08:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: Autogenerate quarters</title>
      <link>https://community.qlik.com/t5/QlikView/Autogenerate-quarters/m-p/938905#M1256098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yup.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See entry from QV Desktop Help I have pasted below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #800000;"&gt;&lt;EM&gt;IterNo( ) &lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM style=": ; color: #800000;"&gt;This function is only meaningful if used together with a while clause, see Load. IterNo( ) returns an integer indicating for which time one single record is evaluated in a load statement with a while clause. The first iteration has number 1. &lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 09:16:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Autogenerate-quarters/m-p/938905#M1256098</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-14T09:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: Autogenerate quarters</title>
      <link>https://community.qlik.com/t5/QlikView/Autogenerate-quarters/m-p/938906#M1256099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot Bill. Really appreciate the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 09:18:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Autogenerate-quarters/m-p/938906#M1256099</guid>
      <dc:creator>kash04kk</dc:creator>
      <dc:date>2015-09-14T09:18:33Z</dc:date>
    </item>
  </channel>
</rss>

