<?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 rows from start date to end date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Autogenerate-rows-from-start-date-to-end-date/m-p/1287502#M623213</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Hello community,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;I'm wondering if there is an existing specific function to do what I want to do:&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;I have in my database x rows of data with a start date and an end date.&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;I want as output&lt;SPAN style="font-size: 13.3333330154419px;"&gt; to have &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;1 row per month between the start and the end date&lt;/SPAN&gt;, and that for each row of input.&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Ex : if row 1 has : start date = 2016/01/12 and end date = 2016/03/21, then I want to have one row for january, one row for february, one row for march. And this functionning for each input row.&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;All I can think of is using FOR...NEXT or FOR EACH, but this seems to take too long.&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Thanks&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;I will explain the context in case there is some other way of doing it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Dec 2016 10:39:46 GMT</pubDate>
    <dc:creator>emmanueld</dc:creator>
    <dc:date>2016-12-20T10:39:46Z</dc:date>
    <item>
      <title>Autogenerate rows from start date to end date</title>
      <link>https://community.qlik.com/t5/QlikView/Autogenerate-rows-from-start-date-to-end-date/m-p/1287502#M623213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Hello community,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;I'm wondering if there is an existing specific function to do what I want to do:&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;I have in my database x rows of data with a start date and an end date.&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;I want as output&lt;SPAN style="font-size: 13.3333330154419px;"&gt; to have &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;1 row per month between the start and the end date&lt;/SPAN&gt;, and that for each row of input.&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Ex : if row 1 has : start date = 2016/01/12 and end date = 2016/03/21, then I want to have one row for january, one row for february, one row for march. And this functionning for each input row.&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;All I can think of is using FOR...NEXT or FOR EACH, but this seems to take too long.&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Thanks&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;I will explain the context in case there is some other way of doing it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2016 10:39:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Autogenerate-rows-from-start-date-to-end-date/m-p/1287502#M623213</guid>
      <dc:creator>emmanueld</dc:creator>
      <dc:date>2016-12-20T10:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: Autogenerate rows from start date to end date</title>
      <link>https://community.qlik.com/t5/QlikView/Autogenerate-rows-from-start-date-to-end-date/m-p/1287503#M623214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Context:&lt;/P&gt;&lt;P&gt;each row of data as input is a study, with a start date and an end date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The indicator I need is the number of studies running, during each month, or each year.&lt;/P&gt;&lt;P&gt;So a study starting on &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;2016/01/12 and ending on 2016/03/21 would count :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;- for 1 on dimension Month = january&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;- for 1 on dimension Month = february&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;- for 1 on dimension Month = march&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;- for 3/12 on dimension Year = 2016&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Therefore I was planning to duplicate the rows to have them at month level, and to just count the rows to calculate the indicator (and divide by 12 if at Year level)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2016 10:49:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Autogenerate-rows-from-start-date-to-end-date/m-p/1287503#M623214</guid>
      <dc:creator>emmanueld</dc:creator>
      <dc:date>2016-12-20T10:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: Autogenerate rows from start date to end date</title>
      <link>https://community.qlik.com/t5/QlikView/Autogenerate-rows-from-start-date-to-end-date/m-p/1287504#M623215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try with "Crosstable"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2016 10:51:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Autogenerate-rows-from-start-date-to-end-date/m-p/1287504#M623215</guid>
      <dc:creator />
      <dc:date>2016-12-20T10:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: Autogenerate rows from start date to end date</title>
      <link>https://community.qlik.com/t5/QlikView/Autogenerate-rows-from-start-date-to-end-date/m-p/1287505#M623216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you&amp;nbsp; Khawar. I didn't know that one and it is very interesting. However I don't see how I could make use of it in my case, because I don't have a crosstable, and I cannot turn my data into a crosstable.&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;Indeed I can't predefine the number of month between the start date and the end date, so I wouldn't know how many columns of months I would need in my crosstable.&lt;/SPAN&gt;&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;I'm looking at intervalmatch though, it looks like something I could use!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2016 13:09:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Autogenerate-rows-from-start-date-to-end-date/m-p/1287505#M623216</guid>
      <dc:creator>emmanueld</dc:creator>
      <dc:date>2016-12-20T13:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: Autogenerate rows from start date to end date</title>
      <link>https://community.qlik.com/t5/QlikView/Autogenerate-rows-from-start-date-to-end-date/m-p/1287506#M623217</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;one solution to just duplicate the source rows with different months could be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_243879_Pic1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/147212_QlikCommunity_Thread_243879_Pic1.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14822806156196729 jive_text_macro" jivemacro_uid="_14822806156196729"&gt;
&lt;P&gt;LOAD RecNo() as ID, *,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MonthName(StartDate,IterNo()-1) as Month&lt;/P&gt;
&lt;P&gt;INLINE [&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; StartDate, EndDate&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2016/01/12, 2016/03/21&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2016/02/10, 2016/05/26&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2016/03/01, 2016/04/05&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2016/01/12, 2016/03/21&lt;/P&gt;
&lt;P&gt;]&lt;/P&gt;
&lt;P&gt;While MonthName(StartDate,IterNo()-1)&amp;lt;=EndDate;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But your description sounds like linking your table with a master table using the intervalmatch prefix is the better idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2016 00:39:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Autogenerate-rows-from-start-date-to-end-date/m-p/1287506#M623217</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2016-12-21T00:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: Autogenerate rows from start date to end date</title>
      <link>https://community.qlik.com/t5/QlikView/Autogenerate-rows-from-start-date-to-end-date/m-p/1287507#M623218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much Marco, I will look into that, it looks great!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2016 08:53:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Autogenerate-rows-from-start-date-to-end-date/m-p/1287507#M623218</guid>
      <dc:creator>emmanueld</dc:creator>
      <dc:date>2016-12-21T08:53:14Z</dc:date>
    </item>
  </channel>
</rss>

