<?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: Repeat each row in a table until the enddate in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Repeat-each-row-in-a-table-until-the-enddate/m-p/612134#M225854</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;H6 style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;SPAN class="j-post-author" style="font-size: 0.9em; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="https://community.qlik.com/people/Nicole_Kowalsky"&gt;Nicole_Kowalsky&lt;/A&gt; and &lt;A href="https://community.qlik.com/people/gwassenaar"&gt;gwassenaar&lt;/A&gt; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/H6&gt;&lt;P&gt;&lt;SPAN class="j-post-author" style="font-size: 0.9em; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;You both have very good command on Scripting.... Always reading your answer specially on script...&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Feb 2014 17:17:34 GMT</pubDate>
    <dc:creator>MK_QSL</dc:creator>
    <dc:date>2014-02-05T17:17:34Z</dc:date>
    <item>
      <title>Repeat each row in a table until the enddate</title>
      <link>https://community.qlik.com/t5/QlikView/Repeat-each-row-in-a-table-until-the-enddate/m-p/612131#M225851</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;Here is the example , i am trying to do in the load script. Is there any easy way to do it in qlikview&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Current table &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="174"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" width="64"&gt;KeyName&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="58"&gt;StartDate&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="52"&gt;EndDate&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="17"&gt;XYZ&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none;"&gt;201307&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;201309&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="17"&gt;BBB&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none;"&gt;201308&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;201309&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="17"&gt;CCC&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none;"&gt;201312&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;&lt;P&gt;201402&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Per name it has to repeat until the end date and start date has to change according&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Desired Table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="174"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" width="64"&gt;KeyName&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="58"&gt;StartDate&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="52"&gt;EndDate&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="17"&gt;XYZ&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none;"&gt;201307&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;201309&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="17"&gt;XYZ&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none;"&gt;201308&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;201309&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="17"&gt;XYZ&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none;"&gt;201309&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;201309&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="17"&gt;BBB&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none;"&gt;201308&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;201309&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="17"&gt;BBB&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none;"&gt;201309&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;201309&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="17"&gt;CCC&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none;"&gt;201312&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;201402&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="17"&gt;CCC&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none;"&gt;201401&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;201402&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="17"&gt;CCC&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none;"&gt;201402&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;201402&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please Advise.&lt;/P&gt;&lt;P&gt;I am thinking of creating rowno() and looping it or iterno().&lt;/P&gt;&lt;P&gt;let me know if there are any easy ways&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;rk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2014 16:04:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Repeat-each-row-in-a-table-until-the-enddate/m-p/612131#M225851</guid>
      <dc:creator />
      <dc:date>2014-02-05T16:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: Repeat each row in a table until the enddate</title>
      <link>https://community.qlik.com/t5/QlikView/Repeat-each-row-in-a-table-until-the-enddate/m-p/612132#M225852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This should do the trick:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;Temp:&lt;/P&gt;
&lt;P&gt;LOAD KeyName, date#(StartDate, 'YYYYMM') as StartDate, date#(EndDate, 'YYYYMM') as EndDate INLINE [&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; KeyName, StartDate, EndDate&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; XYZ, 201307, 201309&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; BBB, 201308, 201309&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CCC, 201312, 201402&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Data:&lt;/P&gt;
&lt;P&gt;NoConcatenate LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; KeyName,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; date(AddMonths(StartDate,IterNo()-1), 'YYYYMM') as StartDate,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; EndDate&lt;/P&gt;
&lt;P&gt;Resident Temp&lt;/P&gt;
&lt;P&gt;while EndDate - addmonths(StartDate, IterNo()-1) &amp;gt;= 0;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;DROP TABLE Temp;&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've also attached a working example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2014 16:45:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Repeat-each-row-in-a-table-until-the-enddate/m-p/612132#M225852</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2014-02-05T16:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: Repeat each row in a table until the enddate</title>
      <link>https://community.qlik.com/t5/QlikView/Repeat-each-row-in-a-table-until-the-enddate/m-p/612133#M225853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13916191883455487" jivemacro_uid="_13916191883455487" modifiedtitle="true"&gt;
&lt;P&gt;LOAD KeyName, date(addmonths(date#(StartDate,'YYYYMM'),IterNo()-1),'YYYYMM') as StartDate, EndDate&lt;/P&gt;
&lt;P&gt;while addmonths(date#(StartDate,'YYYYMM'),IterNo()-1) &amp;lt;= date#(EndDate,'YYYYMM');&lt;/P&gt;
&lt;P&gt;LOAD * INLINE [&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; KeyName, StartDate, EndDate&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; XYZ, 201307, 201309&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; BBB, 201308, 201309&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CCC, 201312, 201402&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;




&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The inline load is just an example to load your sample data. You can replace it with something else that loads data from a file or database.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2014 16:50:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Repeat-each-row-in-a-table-until-the-enddate/m-p/612133#M225853</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-02-05T16:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: Repeat each row in a table until the enddate</title>
      <link>https://community.qlik.com/t5/QlikView/Repeat-each-row-in-a-table-until-the-enddate/m-p/612134#M225854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;H6 style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;SPAN class="j-post-author" style="font-size: 0.9em; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="https://community.qlik.com/people/Nicole_Kowalsky"&gt;Nicole_Kowalsky&lt;/A&gt; and &lt;A href="https://community.qlik.com/people/gwassenaar"&gt;gwassenaar&lt;/A&gt; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/H6&gt;&lt;P&gt;&lt;SPAN class="j-post-author" style="font-size: 0.9em; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;You both have very good command on Scripting.... Always reading your answer specially on script...&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2014 17:17:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Repeat-each-row-in-a-table-until-the-enddate/m-p/612134#M225854</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-02-05T17:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: Repeat each row in a table until the enddate</title>
      <link>https://community.qlik.com/t5/QlikView/Repeat-each-row-in-a-table-until-the-enddate/m-p/612135#M225855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks it is working perfect&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2014 17:40:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Repeat-each-row-in-a-table-until-the-enddate/m-p/612135#M225855</guid>
      <dc:creator />
      <dc:date>2014-02-05T17:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: Repeat each row in a table until the enddate</title>
      <link>https://community.qlik.com/t5/QlikView/Repeat-each-row-in-a-table-until-the-enddate/m-p/612136#M225856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm glad it's working for you! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2014 17:45:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Repeat-each-row-in-a-table-until-the-enddate/m-p/612136#M225856</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2014-02-05T17:45:29Z</dc:date>
    </item>
  </channel>
</rss>

