<?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 calendar in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/autogenerate-calendar/m-p/23127#M3866</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Christopher,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure about your expectation but I can help you to solve the error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t:&lt;/P&gt;&lt;P&gt;load*,&lt;/P&gt;&lt;P&gt;RowNo() as DepNum,&lt;/P&gt;&lt;P&gt;Monto/MesesDep as DepMensual,&lt;/P&gt;&lt;P&gt;Date(Date#(Fecha,'MMM YYYY'),'MMM YYYY') as StartDate,&lt;/P&gt;&lt;P&gt;monthname(addmonths(Date#(Fecha,'MMM YYYY'),MesesDep)) as EndDate&lt;/P&gt;&lt;P&gt;Resident Tabla;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;drop Table Tabla;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;RENAME Table t to Tabla;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;FOR i = 0 to NoOfRows('Tabla')-1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;let vStartDate= Num(peek('StartDate',i,'Tabla'));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;let vEndDate= Num(peek('EndDate',i,'Tabla'));&lt;/P&gt;&lt;P&gt;let vNomCalendar= peek('DepNum',i,'Tabla');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;NoConcatenate&amp;nbsp;&amp;nbsp; // Remove this line if you want single table (i.e Table name 1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;$(vNomCalendar):&lt;/P&gt;&lt;P&gt;Load Distinct&lt;/P&gt;&lt;P&gt;Monthname($(vStartDate)+iterno()-1) as MonthYear&lt;/P&gt;&lt;P&gt;autogenerate 1&amp;nbsp; while $(vStartDate)+iterno()-1 &amp;lt;= $(vEndDate);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;next i&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Mar 2018 15:42:14 GMT</pubDate>
    <dc:creator>tamilarasu</dc:creator>
    <dc:date>2018-03-14T15:42:14Z</dc:date>
    <item>
      <title>autogenerate calendar</title>
      <link>https://community.qlik.com/t5/QlikView/autogenerate-calendar/m-p/23123#M3862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am still working on my automatic generated calendar for each row on my table, I am trying to build the calendar with the for, but I keep getting an error, this is the script:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;TablaDep:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;LOAD * INLINE [&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TipoDep, MesesDep&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Auto, 48&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Otros, 120&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Tabla:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;LOAD * INLINE [&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IDFactura, TipoDep, Monto, Fecha&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; C64079E0-A73C-4A7D-A0A6-C21636E18864, Auto, 10000,Ene 2018&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 31848A13-6189-4E61-95BD-775C2BDFF296, Auto, 20000,Feb 2017&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; C733D223-C797-4DE9-B3A2-B9B207E833E7, Auto, 50000,Mar 2018&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; E7EBD819-3311-4145-9B6C-19DC3AE39C01, Auto, 60000,Jun 2016&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; F85A59CE-F3B2-4068-9A52-D4829B9B93CF, Auto, 30000,Jun 2016&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;left join&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;load&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;TipoDep,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;MesesDep&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Resident TablaDep;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;drop Table TablaDep;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;t:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;load*,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;RowNo() as DepNum,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Monto/MesesDep as DepMensual,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Date#(Fecha,'MMM YYYY') as StartDate,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;monthname(addmonths(Date#(Fecha,'MMM YYYY'),+MesesDep)) as EndDate&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Resident Tabla;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;drop Table Tabla;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;RENAME Table t to Tabla;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;FOR i = 0 to NoOfRows('Tabla')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; let vStartDate= peek('StartDate',i,'Tabla');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; let vEndDate= peek('EndDate',i,'Tabla');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; let vNomCalendar= peek('DepNum',i,'Tabla');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;$(vNomCalendar):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Load&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Monthname($(vStartDate),+iterno()-1) as MonthYear&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;autogenerate 1&amp;nbsp; while $(vStartDate)+iterno()-1&amp;lt;=$(vEndDate);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;next i&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;EXIT Script;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;The error I keep getting is that I am missing a ")", could you please help me?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thank you.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2018 23:07:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/autogenerate-calendar/m-p/23123#M3862</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-13T23:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: autogenerate calendar</title>
      <link>https://community.qlik.com/t5/QlikView/autogenerate-calendar/m-p/23124#M3863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;On the first pass through the loop, vEndDate is Null.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d; font-family: &amp;amp;font-size:13px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px; border-color: #3d3d3d; border-style: none;"&gt;&lt;SPAN style="font-family: &amp;amp;font-size:13.33px; font-style: normal; font-weight: 400; border-color: #3d3d3d; border-style: none;"&gt;FOR i = 0 to NoOfRows('Tabla')&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d; font-family: &amp;amp;font-size:13px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px; border-color: #3d3d3d; border-style: none;"&gt;&lt;SPAN style="font-family: &amp;amp;font-size:13.33px; font-style: normal; font-weight: 400; border-color: #3d3d3d; border-style: none;"&gt;&lt;BR style="font-family: &amp;amp;font-size:13.33px; font-style: normal; font-weight: 400; border-color: #3d3d3d; border-style: none;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d; font-family: &amp;amp;font-size:13px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px; border-color: #3d3d3d; border-style: none;"&gt;&lt;SPAN style="font-family: &amp;amp;font-size:13.33px; font-style: normal; font-weight: 400; border-color: #3d3d3d; border-style: none;"&gt; let vStartDate= peek('StartDate',i,'Tabla');&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d; font-family: &amp;amp;font-size:13px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px; border-color: #3d3d3d; border-style: none;"&gt;&lt;SPAN style="font-family: &amp;amp;font-size:13.33px; font-style: normal; font-weight: 400; border-color: #3d3d3d; border-style: none;"&gt; let vEndDate= peek('EndDate',i,'Tabla');&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d; font-family: &amp;amp;font-size:13px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px; border-color: #3d3d3d; border-style: none;"&gt;&lt;SPAN style="font-family: &amp;amp;font-size:13.33px; font-style: normal; font-weight: 400; border-color: #3d3d3d; border-style: none;"&gt; let vNomCalendar= peek('DepNum',i,'Tabla');&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d; font-family: &amp;amp;font-size:13px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px; border-color: #3d3d3d; border-style: none;"&gt;&lt;SPAN style="font-family: &amp;amp;font-size:13.33px; font-style: normal; font-weight: 400; border-color: #3d3d3d; border-style: none;"&gt;$(vNomCalendar):&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d; font-family: &amp;amp;font-size:13px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px; border-color: #3d3d3d; border-style: none;"&gt;&lt;SPAN style="font-family: &amp;amp;font-size:13.33px; font-style: normal; font-weight: 400; border-color: #3d3d3d; border-style: none;"&gt;Load&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d; font-family: &amp;amp;font-size:13px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px; border-color: #3d3d3d; border-style: none;"&gt;&lt;SPAN style="font-family: &amp;amp;font-size:13.33px; font-style: normal; font-weight: 400; border-color: #3d3d3d; border-style: none;"&gt;Monthname($(vStartDate),+iterno()-1) as MonthYear&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d; font-family: &amp;amp;font-size:13px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px; border-color: #3d3d3d; border-style: none;"&gt;&lt;SPAN style="font-family: &amp;amp;font-size:13.33px; font-style: normal; font-weight: 400; border-color: #3d3d3d; border-style: none;"&gt;autogenerate 1&amp;nbsp; while $(vStartDate)+iterno()-1&amp;lt;=$(vEndDate);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d; font-family: &amp;amp;font-size:13px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px; border-color: #3d3d3d; border-style: none;"&gt;&lt;SPAN style="font-family: &amp;amp;font-size:13.33px; font-style: normal; font-weight: 400; border-color: #3d3d3d; border-style: none;"&gt; &lt;/SPAN&gt; &lt;/P&gt;&lt;P style="color: #3d3d3d; font-family: &amp;amp;font-size:13px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px; border-color: #3d3d3d; border-style: none;"&gt;&lt;SPAN style="font-family: &amp;amp;font-size:13.33px; font-style: normal; font-weight: 400; border-color: #3d3d3d; border-style: none;"&gt;next i&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d; font-family: &amp;amp;font-size:13px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px; border-color: #3d3d3d; border-style: none;"&gt;&lt;SPAN style="font-family: &amp;amp;font-size:13.33px; font-style: normal; font-weight: 400; border-color: #3d3d3d; border-style: none;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d; font-family: &amp;amp;font-size:13px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px; border-color: #3d3d3d; border-style: none;"&gt;&lt;SPAN style="font-family: &amp;amp;font-size:13.33px; font-style: normal; font-weight: 400; border-color: #3d3d3d; border-style: none;"&gt;&lt;IMG alt="Capture1.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/196254_Capture1.PNG" style="width: 620px; height: 129px;" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2018 02:03:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/autogenerate-calendar/m-p/23124#M3863</guid>
      <dc:creator>jwjackso</dc:creator>
      <dc:date>2018-03-14T02:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: autogenerate calendar</title>
      <link>https://community.qlik.com/t5/QlikView/autogenerate-calendar/m-p/23125#M3864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you see it as a Null because of the variables I am using, because my months are in Spanish, I am guessing that is you change the "Tabla" first row from "Ene 2018" to "Jan 2018" it will show all the right values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2018 04:20:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/autogenerate-calendar/m-p/23125#M3864</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-14T04:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: autogenerate calendar</title>
      <link>https://community.qlik.com/t5/QlikView/autogenerate-calendar/m-p/23126#M3865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I though about doing that in the beginning, but I need to have the end and start date flagged inside the table for each row, because each row is a different calculation, that means that it have have different Amount and different end and start dates. &lt;/P&gt;&lt;P&gt;If were to use a single calendar, I don't see how could I separate the values per register.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2018 15:17:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/autogenerate-calendar/m-p/23126#M3865</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-14T15:17:23Z</dc:date>
    </item>
    <item>
      <title>Re: autogenerate calendar</title>
      <link>https://community.qlik.com/t5/QlikView/autogenerate-calendar/m-p/23127#M3866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Christopher,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure about your expectation but I can help you to solve the error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t:&lt;/P&gt;&lt;P&gt;load*,&lt;/P&gt;&lt;P&gt;RowNo() as DepNum,&lt;/P&gt;&lt;P&gt;Monto/MesesDep as DepMensual,&lt;/P&gt;&lt;P&gt;Date(Date#(Fecha,'MMM YYYY'),'MMM YYYY') as StartDate,&lt;/P&gt;&lt;P&gt;monthname(addmonths(Date#(Fecha,'MMM YYYY'),MesesDep)) as EndDate&lt;/P&gt;&lt;P&gt;Resident Tabla;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;drop Table Tabla;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;RENAME Table t to Tabla;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;FOR i = 0 to NoOfRows('Tabla')-1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;let vStartDate= Num(peek('StartDate',i,'Tabla'));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;let vEndDate= Num(peek('EndDate',i,'Tabla'));&lt;/P&gt;&lt;P&gt;let vNomCalendar= peek('DepNum',i,'Tabla');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;NoConcatenate&amp;nbsp;&amp;nbsp; // Remove this line if you want single table (i.e Table name 1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;$(vNomCalendar):&lt;/P&gt;&lt;P&gt;Load Distinct&lt;/P&gt;&lt;P&gt;Monthname($(vStartDate)+iterno()-1) as MonthYear&lt;/P&gt;&lt;P&gt;autogenerate 1&amp;nbsp; while $(vStartDate)+iterno()-1 &amp;lt;= $(vEndDate);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;next i&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2018 15:42:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/autogenerate-calendar/m-p/23127#M3866</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2018-03-14T15:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: autogenerate calendar</title>
      <link>https://community.qlik.com/t5/QlikView/autogenerate-calendar/m-p/23128#M3867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thnak you! This helped me a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2018 17:59:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/autogenerate-calendar/m-p/23128#M3867</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-15T17:59:57Z</dc:date>
    </item>
  </channel>
</rss>

