<?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: Dynamically Adding rows in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dynamically-Adding-rows/m-p/804448#M1031882</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test:&lt;/P&gt;&lt;P&gt;Load * Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;YEAR,TERM,AMOUNT&lt;/P&gt;&lt;P&gt;2013,3,100&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET NumRows=0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET NumRows=NoOfRows('Test');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let x=0;&lt;/P&gt;&lt;P&gt;For x=1 to $(NumRows);&lt;/P&gt;&lt;P&gt;let iMax=0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let iMax=FieldValue('TERM',$(x));&lt;/P&gt;&lt;P&gt;let i=0;&lt;/P&gt;&lt;P&gt;FOR i=0 to $(iMax)-1;&lt;/P&gt;&lt;P&gt;//let filesize=filesize( 'NEW_TEST' );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NEW_TEST:&lt;/P&gt;&lt;P&gt;load YEAR+$(i) as NEW_YEAR,&lt;/P&gt;&lt;P&gt;if($(i)&amp;gt;0,$(i)+1&amp;amp;' Years'&amp;amp;if($(i)&amp;gt;0,' of&amp;nbsp; ')&amp;amp;TERM,TERM &amp;amp; ' Years')&amp;nbsp; as NEW_TERM,AMOUNT as NEW_AMOUNT Resident Test;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NEXT i&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;next x&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop Table Test;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Feb 2015 12:52:00 GMT</pubDate>
    <dc:creator>avinashelite</dc:creator>
    <dc:date>2015-02-02T12:52:00Z</dc:date>
    <item>
      <title>Dynamically Adding rows</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamically-Adding-rows/m-p/804441#M1031875</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 have &lt;STRONG&gt;year&lt;/STRONG&gt; ,&lt;STRONG&gt;Contract&lt;/STRONG&gt; &lt;STRONG&gt;term &lt;/STRONG&gt;and&lt;STRONG&gt; Amount&lt;/STRONG&gt; columns .&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Year&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;contract&lt;/STRONG&gt; &lt;STRONG&gt;term&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Amount&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2013&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3 years&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;if contract term =3 years . Qlikview Should generate additional two rows,that is 2014,2015 as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Header 1&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;SPAN style="color: #ffffff; text-align: center; background-color: #6690bc;"&gt;Year&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG style="color: #ffffff; text-align: center;"&gt;contract&lt;/STRONG&gt;&lt;SPAN style="color: #ffffff; text-align: center; background-color: #6690bc;"&gt; &lt;/SPAN&gt;&lt;STRONG style="color: #ffffff; text-align: center;"&gt;term&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;SPAN style="color: #ffffff; text-align: center; background-color: #6690bc;"&gt;Amount&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2013&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;3 years&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2014&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2 years of 3&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2015&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;3 years of 3&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt; How to achieve this in qlikview thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Feb 2015 10:25:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamically-Adding-rows/m-p/804441#M1031875</guid>
      <dc:creator>sat_tok52</dc:creator>
      <dc:date>2015-02-02T10:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically Adding rows</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamically-Adding-rows/m-p/804442#M1031876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you please elaborate your requirement&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Feb 2015 10:37:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamically-Adding-rows/m-p/804442#M1031876</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2015-02-02T10:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically Adding rows</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamically-Adding-rows/m-p/804443#M1031877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pls find the updated post.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Feb 2015 10:38:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamically-Adding-rows/m-p/804443#M1031877</guid>
      <dc:creator>sat_tok52</dc:creator>
      <dc:date>2015-02-02T10:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically Adding rows</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamically-Adding-rows/m-p/804444#M1031878</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;try like this in the script:&lt;/P&gt;&lt;P&gt;Test:&lt;/P&gt;&lt;P&gt;Load * Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;YEAR,TERM,AMOUNT&lt;/P&gt;&lt;P&gt;2013,3,100&lt;/P&gt;&lt;P&gt;2014,2,200&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET NumRows=0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET NumRows=NoOfRows('Test');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For x=1 to $(NumRows);&lt;/P&gt;&lt;P&gt;let iMax=0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let iMax=FieldValue('TERM',$(x));&lt;/P&gt;&lt;P&gt;FOR i=0 to iMax-1;&lt;/P&gt;&lt;P&gt;//let filesize=filesize( 'NEW_TEST' );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NEW_TEST:&lt;/P&gt;&lt;P&gt;load YEAR+$(i) as NEW_YEAR,TERM as NEW_TERM,AMOUNT as NEW_AMOUNT Resident Test;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NEXT i&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;next x&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop Table Test;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find the attachment for the same.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Feb 2015 11:34:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamically-Adding-rows/m-p/804444#M1031878</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2015-02-02T11:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically Adding rows</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamically-Adding-rows/m-p/804445#M1031879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi satessh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have got the answer please mark this thread as answered &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Feb 2015 12:03:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamically-Adding-rows/m-p/804445#M1031879</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2015-02-02T12:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically Adding rows</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamically-Adding-rows/m-p/804446#M1031880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your time almost matching to my requirement&amp;nbsp; but&amp;nbsp; Contract term should be like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Year&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Contract term &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; 2013&amp;nbsp;&amp;nbsp;&amp;nbsp; ,&amp;nbsp;&amp;nbsp;&amp;nbsp; 3 years&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; 2014&amp;nbsp; ,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2 year of 3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; 2015,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3 year of 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But your application&amp;nbsp; the New_Term&amp;nbsp; showing same for all three years.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Feb 2015 12:19:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamically-Adding-rows/m-p/804446#M1031880</guid>
      <dc:creator>sat_tok52</dc:creator>
      <dc:date>2015-02-02T12:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically Adding rows</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamically-Adding-rows/m-p/804447#M1031881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="1.jpg" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/76872_1.jpg" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;script in the attachment&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Feb 2015 12:39:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamically-Adding-rows/m-p/804447#M1031881</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-02-02T12:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically Adding rows</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamically-Adding-rows/m-p/804448#M1031882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test:&lt;/P&gt;&lt;P&gt;Load * Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;YEAR,TERM,AMOUNT&lt;/P&gt;&lt;P&gt;2013,3,100&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET NumRows=0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET NumRows=NoOfRows('Test');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let x=0;&lt;/P&gt;&lt;P&gt;For x=1 to $(NumRows);&lt;/P&gt;&lt;P&gt;let iMax=0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let iMax=FieldValue('TERM',$(x));&lt;/P&gt;&lt;P&gt;let i=0;&lt;/P&gt;&lt;P&gt;FOR i=0 to $(iMax)-1;&lt;/P&gt;&lt;P&gt;//let filesize=filesize( 'NEW_TEST' );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NEW_TEST:&lt;/P&gt;&lt;P&gt;load YEAR+$(i) as NEW_YEAR,&lt;/P&gt;&lt;P&gt;if($(i)&amp;gt;0,$(i)+1&amp;amp;' Years'&amp;amp;if($(i)&amp;gt;0,' of&amp;nbsp; ')&amp;amp;TERM,TERM &amp;amp; ' Years')&amp;nbsp; as NEW_TERM,AMOUNT as NEW_AMOUNT Resident Test;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NEXT i&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;next x&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop Table Test;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Feb 2015 12:52:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamically-Adding-rows/m-p/804448#M1031882</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2015-02-02T12:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically Adding rows</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamically-Adding-rows/m-p/804449#M1031883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the above code I have tweaked the new term part as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let iMax=FieldValue('TERM',$(x));&lt;/P&gt;&lt;P&gt;FOR i=0 to iMax-1;&lt;/P&gt;&lt;P&gt;//let filesize=filesize( 'NEW_TEST' );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NEW_TEST:&lt;/P&gt;&lt;P&gt;load YEAR+$(i) as NEW_YEAR,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;If ($(i)=0, TERM, $(i)+1 &amp;amp; ' year of '&amp;amp; TERM )&amp;amp;' years' as NEW_TERM,&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;AMOUNT as NEW_AMOUNT Resident Test;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NEXT i&lt;/P&gt;&lt;P&gt;...........................................................................................................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if you need the modified app.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Feb 2015 12:55:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamically-Adding-rows/m-p/804449#M1031883</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-02T12:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically Adding rows</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamically-Adding-rows/m-p/804450#M1031884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Massimos approach is more elegant &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Feb 2015 12:59:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamically-Adding-rows/m-p/804450#M1031884</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-02T12:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically Adding rows</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamically-Adding-rows/m-p/804451#M1031885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sateesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load your table and find the max value for the each row and then iterate the row until for max number of year value for more see the load script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;Tab1:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9.0pt; font-family: 'Courier New';"&gt;LOAD&lt;/STRONG&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Trim&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;KeepChar&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;[contract term]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,0123456789)) &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;MaxNum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,*;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9.0pt; font-family: 'Courier New';"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;INLINE&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;[&lt;BR /&gt; Year, contract term, Amount&lt;BR /&gt; 2013, 3 years, 100&lt;BR /&gt; 2014, 5 years, 200&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;;&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;NoConcatenate&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9.0pt; font-family: 'Courier New';"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;RowNo&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;() &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;[contract term]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Amount&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;MaxNum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: green;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Peek&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;('Year') , &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;IterNo&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;()&amp;amp;' years of '&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;MaxNum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; , &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;MaxNum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&amp;amp; ' years' ) &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;[contract term Details]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Peek&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;('Year') , &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;+&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;IterNo&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;()-1,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;NewYear&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Resident&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; Tab1 &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;While&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;IterNo&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;() &amp;lt;= &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;MaxNum&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Order&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;By&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;[contract term]&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;asc&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9.0pt; font-family: 'Courier New';"&gt;DROP&lt;/STRONG&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Table&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; Tab1;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9.0pt; font-family: 'Courier New';"&gt;DROP&lt;/STRONG&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Field&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;MaxNum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;Output you get this way&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="AutogenRows.PNG" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/76892_AutogenRows.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Feb 2015 14:15:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamically-Adding-rows/m-p/804451#M1031885</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2015-02-02T14:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically Adding rows</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamically-Adding-rows/m-p/804452#M1031886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anand,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your time,It's working fine but in contract term details column should show like below format.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; 3 years&lt;/P&gt;&lt;P&gt;&amp;nbsp; year 2 of 3&lt;/P&gt;&lt;P&gt; Year 3 of 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sateesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2015 06:57:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamically-Adding-rows/m-p/804452#M1031886</guid>
      <dc:creator>sat_tok52</dc:creator>
      <dc:date>2015-02-03T06:57:06Z</dc:date>
    </item>
  </channel>
</rss>

