<?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 Loop all table rows in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Loop-all-table-rows/m-p/189630#M52435</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;I have a table like this:&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse; width: 152pt;" width="203"&gt;&lt;COL style="width: 56pt;" width="75" /&gt;&lt;COL span="2" style="width: 48pt;" width="64" /&gt;&lt;TBODY&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl65" height="17" style="background: black none repeat scroll 0% 0%; height: 12.75pt; width: 56pt; font-size: 10pt; color: white; font-weight: 700; text-decoration: none; font-family: Arial; border: 0.5pt medium medium 0.5pt solid none none solid black -moz-use-text-color -moz-use-text-color black;" width="75"&gt;material&lt;/TD&gt;&lt;TD class="xl65" style="background: black none repeat scroll 0% 0%; width: 48pt; font-size: 10pt; color: white; font-weight: 700; text-decoration: none; font-family: Arial; border: 0.5pt medium medium solid none none black -moz-use-text-color -moz-use-text-color;" width="64"&gt;price&lt;/TD&gt;&lt;TD class="xl65" style="background: black none repeat scroll 0% 0%; width: 48pt; font-size: 10pt; color: white; font-weight: 700; text-decoration: none; font-family: Arial; border: 0.5pt 0.5pt medium medium solid solid none none black black -moz-use-text-color -moz-use-text-color;" width="64"&gt;qty&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" height="17" style="height: 12.75pt; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt medium medium 0.5pt solid none none solid black -moz-use-text-color -moz-use-text-color black;"&gt;66929&lt;/TD&gt;&lt;TD class="xl66" style="border-style: solid none none; border-color: black -moz-use-text-color -moz-use-text-color; border-width: 0.5pt medium medium; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial;"&gt;€ 1,20&lt;/TD&gt;&lt;TD align="right" style="border-style: solid solid none none; border-color: black black -moz-use-text-color -moz-use-text-color; border-width: 0.5pt 0.5pt medium medium; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" height="17" style="height: 12.75pt; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt medium medium 0.5pt solid none none solid black -moz-use-text-color -moz-use-text-color black;"&gt;66929&lt;/TD&gt;&lt;TD class="xl66" style="border-style: solid none none; border-color: black -moz-use-text-color -moz-use-text-color; border-width: 0.5pt medium medium; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial;"&gt;€ 1,25&lt;/TD&gt;&lt;TD align="right" style="border-style: solid solid none none; border-color: black black -moz-use-text-color -moz-use-text-color; border-width: 0.5pt 0.5pt medium medium; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" height="17" style="height: 12.75pt; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt medium medium 0.5pt solid none none solid black -moz-use-text-color -moz-use-text-color black;"&gt;66929&lt;/TD&gt;&lt;TD class="xl66" style="border-style: solid none none; border-color: black -moz-use-text-color -moz-use-text-color; border-width: 0.5pt medium medium; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial;"&gt;€ 1,70&lt;/TD&gt;&lt;TD align="right" style="border-style: solid solid none none; border-color: black black -moz-use-text-color -moz-use-text-color; border-width: 0.5pt 0.5pt medium medium; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" height="17" style="height: 12.75pt; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt medium medium 0.5pt solid none none solid black -moz-use-text-color -moz-use-text-color black;"&gt;15894&lt;/TD&gt;&lt;TD class="xl66" style="border-style: solid none none; border-color: black -moz-use-text-color -moz-use-text-color; border-width: 0.5pt medium medium; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial;"&gt;€ 5,10&lt;/TD&gt;&lt;TD align="right" style="border-style: solid solid none none; border-color: black black -moz-use-text-color -moz-use-text-color; border-width: 0.5pt 0.5pt medium medium; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial;"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" height="17" style="height: 12.75pt; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt medium 0.5pt 0.5pt solid none solid solid black -moz-use-text-color black black;"&gt;66929&lt;/TD&gt;&lt;TD class="xl66" style="border-style: solid none; border-color: black -moz-use-text-color; border-width: 0.5pt medium; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial;"&gt;€ 1,20&lt;/TD&gt;&lt;TD align="right" style="border-style: solid solid solid none; border-color: black black black -moz-use-text-color; border-width: 0.5pt 0.5pt 0.5pt medium; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;For simplicity, let say we have only one material (66929). What I need is work out this table into another one like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse; width: 152pt;" width="203"&gt;&lt;COL style="width: 56pt;" width="75" /&gt;&lt;COL span="2" style="width: 48pt;" width="64" /&gt;&lt;TBODY&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl65" height="17" style="background: black none repeat scroll 0% 0%; height: 12.75pt; width: 56pt; font-size: 10pt; color: white; font-weight: 700; text-decoration: none; font-family: Arial; border: 0.5pt medium medium 0.5pt solid none none solid black -moz-use-text-color -moz-use-text-color black;" width="75"&gt;material&lt;/TD&gt;&lt;TD class="xl65" style="background: black none repeat scroll 0% 0%; width: 48pt; font-size: 10pt; color: white; font-weight: 700; text-decoration: none; font-family: Arial; border: 0.5pt medium medium solid none none black -moz-use-text-color -moz-use-text-color;" width="64"&gt;no.&lt;/TD&gt;&lt;TD class="xl65" style="background: black none repeat scroll 0% 0%; width: 48pt; font-size: 10pt; color: white; font-weight: 700; text-decoration: none; font-family: Arial; border: 0.5pt 0.5pt medium medium solid solid none none black black -moz-use-text-color -moz-use-text-color;" width="64"&gt;price&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl66" height="17" style="height: 12.75pt; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt medium medium 0.5pt solid none none solid black -moz-use-text-color -moz-use-text-color black;"&gt;66929&lt;/TD&gt;&lt;TD align="right" style="font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt medium medium solid none none black -moz-use-text-color -moz-use-text-color;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl67" style="font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt 0.5pt medium medium solid solid none none black black -moz-use-text-color -moz-use-text-color;"&gt;€ 1,20&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl66" height="17" style="height: 12.75pt; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt medium medium 0.5pt solid none none solid black -moz-use-text-color -moz-use-text-color black;"&gt;66929&lt;/TD&gt;&lt;TD align="right" style="font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt medium medium solid none none black -moz-use-text-color -moz-use-text-color;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl67" style="font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt 0.5pt medium medium solid solid none none black black -moz-use-text-color -moz-use-text-color;"&gt;€ 1,20&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl66" height="17" style="height: 12.75pt; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt medium medium 0.5pt solid none none solid black -moz-use-text-color -moz-use-text-color black;"&gt;66929&lt;/TD&gt;&lt;TD align="right" style="font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt medium medium solid none none black -moz-use-text-color -moz-use-text-color;"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl67" style="font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt 0.5pt medium medium solid solid none none black black -moz-use-text-color -moz-use-text-color;"&gt;€ 1,20&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl66" height="17" style="height: 12.75pt; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt medium medium 0.5pt solid none none solid black -moz-use-text-color -moz-use-text-color black;"&gt;66929&lt;/TD&gt;&lt;TD align="right" style="font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt medium medium solid none none black -moz-use-text-color -moz-use-text-color;"&gt;4&lt;/TD&gt;&lt;TD align="right" class="xl67" style="font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt 0.5pt medium medium solid solid none none black black -moz-use-text-color -moz-use-text-color;"&gt;€ 1,25&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl66" height="17" style="height: 12.75pt; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt medium medium 0.5pt solid none none solid black -moz-use-text-color -moz-use-text-color black;"&gt;66929&lt;/TD&gt;&lt;TD align="right" style="font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt medium medium solid none none black -moz-use-text-color -moz-use-text-color;"&gt;5&lt;/TD&gt;&lt;TD align="right" class="xl67" style="font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt 0.5pt medium medium solid solid none none black black -moz-use-text-color -moz-use-text-color;"&gt;€ 1,25&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl66" height="17" style="height: 12.75pt; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt medium medium 0.5pt solid none none solid black -moz-use-text-color -moz-use-text-color black;"&gt;66929&lt;/TD&gt;&lt;TD align="right" style="font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt medium medium solid none none black -moz-use-text-color -moz-use-text-color;"&gt;6&lt;/TD&gt;&lt;TD align="right" class="xl67" style="font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt 0.5pt medium medium solid solid none none black black -moz-use-text-color -moz-use-text-color;"&gt;€ 1,25&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl66" height="17" style="height: 12.75pt; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt medium medium 0.5pt solid none none solid black -moz-use-text-color -moz-use-text-color black;"&gt;66929&lt;/TD&gt;&lt;TD align="right" style="font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt medium medium solid none none black -moz-use-text-color -moz-use-text-color;"&gt;7&lt;/TD&gt;&lt;TD align="right" class="xl67" style="font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt 0.5pt medium medium solid solid none none black black -moz-use-text-color -moz-use-text-color;"&gt;€ 1,25&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl66" height="17" style="height: 12.75pt; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt medium medium 0.5pt solid none none solid black -moz-use-text-color -moz-use-text-color black;"&gt;66929&lt;/TD&gt;&lt;TD align="right" style="font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt medium medium solid none none black -moz-use-text-color -moz-use-text-color;"&gt;8&lt;/TD&gt;&lt;TD align="right" class="xl67" style="font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt 0.5pt medium medium solid solid none none black black -moz-use-text-color -moz-use-text-color;"&gt;€ 1,25&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl66" height="17" style="height: 12.75pt; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt medium medium 0.5pt solid none none solid black -moz-use-text-color -moz-use-text-color black;"&gt;66929&lt;/TD&gt;&lt;TD align="right" style="font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt medium medium solid none none black -moz-use-text-color -moz-use-text-color;"&gt;9&lt;/TD&gt;&lt;TD align="right" class="xl67" style="font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt 0.5pt medium medium solid solid none none black black -moz-use-text-color -moz-use-text-color;"&gt;€ 1,70&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl66" height="17" style="height: 12.75pt; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt medium medium 0.5pt solid none none solid black -moz-use-text-color -moz-use-text-color black;"&gt;66929&lt;/TD&gt;&lt;TD align="right" style="font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt medium medium solid none none black -moz-use-text-color -moz-use-text-color;"&gt;10&lt;/TD&gt;&lt;TD align="right" class="xl67" style="font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt 0.5pt medium medium solid solid none none black black -moz-use-text-color -moz-use-text-color;"&gt;€ 1,70&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl66" height="17" style="height: 12.75pt; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt medium medium 0.5pt solid none none solid black -moz-use-text-color -moz-use-text-color black;"&gt;66929&lt;/TD&gt;&lt;TD align="right" style="font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt medium medium solid none none black -moz-use-text-color -moz-use-text-color;"&gt;11&lt;/TD&gt;&lt;TD align="right" class="xl67" style="font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt 0.5pt medium medium solid solid none none black black -moz-use-text-color -moz-use-text-color;"&gt;€ 1,20&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl66" height="17" style="height: 12.75pt; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt medium medium 0.5pt solid none none solid black -moz-use-text-color -moz-use-text-color black;"&gt;66929&lt;/TD&gt;&lt;TD align="right" style="font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt medium medium solid none none black -moz-use-text-color -moz-use-text-color;"&gt;12&lt;/TD&gt;&lt;TD align="right" class="xl67" style="font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt 0.5pt medium medium solid solid none none black black -moz-use-text-color -moz-use-text-color;"&gt;€ 1,20&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl66" height="17" style="height: 12.75pt; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt medium 0.5pt 0.5pt solid none solid solid black -moz-use-text-color black black;"&gt;66929&lt;/TD&gt;&lt;TD align="right" style="font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt medium solid none black -moz-use-text-color;"&gt;13&lt;/TD&gt;&lt;TD align="right" class="xl67" style="font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt 0.5pt 0.5pt medium solid solid solid none black black black -moz-use-text-color;"&gt;€ 1,20&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;As you can see, in this last table I have listed all the materials one by one, according to their quantity. I have therefore three items at € 1,20, five at € 1,25 and so on.&lt;/P&gt;&lt;P&gt;In QlikView, I need two loops: one that scrolls each row and a nested one that will loop as many time as stated in the corresponding quantity. I'll thus create this second table including the RowNo() (called "no." in the example).&lt;BR /&gt;I'm able to loop all the rows, but I can't loop the single row according the the reported quantity. Any idea, please?&lt;/P&gt;&lt;P&gt;The code I've written till now is (assuming "Details" is the first table and "r" is the RecNo() of the first table, calculated and included for each row):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;LET NrRows = NoOfRows('Details');&lt;BR /&gt;LET k = 1; //counter for rows&lt;BR /&gt;DO WHILE r&amp;lt;=NrRows //loop all the rows&lt;BR /&gt; LET i=0;&lt;BR /&gt; DO WHILE i&amp;lt;PEEK(qta_originale,r,'Details'); //I need to loop the selected row as many times as quantity is. What I've writtend here doesn't work since the PEEK function is not in a load statement&lt;BR /&gt; LOAD RowNo() as n, PEEK(material,r,'Details') as material, PEEK(price,r,'Details') as price&lt;BR /&gt; RESIDENT Details;&lt;BR /&gt; i=i+1;&lt;BR /&gt; LOOP&lt;BR /&gt; k=k+1;&lt;BR /&gt;LOOP&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Dec 2009 18:41:15 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-12-16T18:41:15Z</dc:date>
    <item>
      <title>Loop all table rows</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-all-table-rows/m-p/189630#M52435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;I have a table like this:&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse; width: 152pt;" width="203"&gt;&lt;COL style="width: 56pt;" width="75" /&gt;&lt;COL span="2" style="width: 48pt;" width="64" /&gt;&lt;TBODY&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl65" height="17" style="background: black none repeat scroll 0% 0%; height: 12.75pt; width: 56pt; font-size: 10pt; color: white; font-weight: 700; text-decoration: none; font-family: Arial; border: 0.5pt medium medium 0.5pt solid none none solid black -moz-use-text-color -moz-use-text-color black;" width="75"&gt;material&lt;/TD&gt;&lt;TD class="xl65" style="background: black none repeat scroll 0% 0%; width: 48pt; font-size: 10pt; color: white; font-weight: 700; text-decoration: none; font-family: Arial; border: 0.5pt medium medium solid none none black -moz-use-text-color -moz-use-text-color;" width="64"&gt;price&lt;/TD&gt;&lt;TD class="xl65" style="background: black none repeat scroll 0% 0%; width: 48pt; font-size: 10pt; color: white; font-weight: 700; text-decoration: none; font-family: Arial; border: 0.5pt 0.5pt medium medium solid solid none none black black -moz-use-text-color -moz-use-text-color;" width="64"&gt;qty&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" height="17" style="height: 12.75pt; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt medium medium 0.5pt solid none none solid black -moz-use-text-color -moz-use-text-color black;"&gt;66929&lt;/TD&gt;&lt;TD class="xl66" style="border-style: solid none none; border-color: black -moz-use-text-color -moz-use-text-color; border-width: 0.5pt medium medium; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial;"&gt;€ 1,20&lt;/TD&gt;&lt;TD align="right" style="border-style: solid solid none none; border-color: black black -moz-use-text-color -moz-use-text-color; border-width: 0.5pt 0.5pt medium medium; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" height="17" style="height: 12.75pt; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt medium medium 0.5pt solid none none solid black -moz-use-text-color -moz-use-text-color black;"&gt;66929&lt;/TD&gt;&lt;TD class="xl66" style="border-style: solid none none; border-color: black -moz-use-text-color -moz-use-text-color; border-width: 0.5pt medium medium; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial;"&gt;€ 1,25&lt;/TD&gt;&lt;TD align="right" style="border-style: solid solid none none; border-color: black black -moz-use-text-color -moz-use-text-color; border-width: 0.5pt 0.5pt medium medium; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" height="17" style="height: 12.75pt; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt medium medium 0.5pt solid none none solid black -moz-use-text-color -moz-use-text-color black;"&gt;66929&lt;/TD&gt;&lt;TD class="xl66" style="border-style: solid none none; border-color: black -moz-use-text-color -moz-use-text-color; border-width: 0.5pt medium medium; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial;"&gt;€ 1,70&lt;/TD&gt;&lt;TD align="right" style="border-style: solid solid none none; border-color: black black -moz-use-text-color -moz-use-text-color; border-width: 0.5pt 0.5pt medium medium; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" height="17" style="height: 12.75pt; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt medium medium 0.5pt solid none none solid black -moz-use-text-color -moz-use-text-color black;"&gt;15894&lt;/TD&gt;&lt;TD class="xl66" style="border-style: solid none none; border-color: black -moz-use-text-color -moz-use-text-color; border-width: 0.5pt medium medium; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial;"&gt;€ 5,10&lt;/TD&gt;&lt;TD align="right" style="border-style: solid solid none none; border-color: black black -moz-use-text-color -moz-use-text-color; border-width: 0.5pt 0.5pt medium medium; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial;"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" height="17" style="height: 12.75pt; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt medium 0.5pt 0.5pt solid none solid solid black -moz-use-text-color black black;"&gt;66929&lt;/TD&gt;&lt;TD class="xl66" style="border-style: solid none; border-color: black -moz-use-text-color; border-width: 0.5pt medium; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial;"&gt;€ 1,20&lt;/TD&gt;&lt;TD align="right" style="border-style: solid solid solid none; border-color: black black black -moz-use-text-color; border-width: 0.5pt 0.5pt 0.5pt medium; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;For simplicity, let say we have only one material (66929). What I need is work out this table into another one like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse; width: 152pt;" width="203"&gt;&lt;COL style="width: 56pt;" width="75" /&gt;&lt;COL span="2" style="width: 48pt;" width="64" /&gt;&lt;TBODY&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl65" height="17" style="background: black none repeat scroll 0% 0%; height: 12.75pt; width: 56pt; font-size: 10pt; color: white; font-weight: 700; text-decoration: none; font-family: Arial; border: 0.5pt medium medium 0.5pt solid none none solid black -moz-use-text-color -moz-use-text-color black;" width="75"&gt;material&lt;/TD&gt;&lt;TD class="xl65" style="background: black none repeat scroll 0% 0%; width: 48pt; font-size: 10pt; color: white; font-weight: 700; text-decoration: none; font-family: Arial; border: 0.5pt medium medium solid none none black -moz-use-text-color -moz-use-text-color;" width="64"&gt;no.&lt;/TD&gt;&lt;TD class="xl65" style="background: black none repeat scroll 0% 0%; width: 48pt; font-size: 10pt; color: white; font-weight: 700; text-decoration: none; font-family: Arial; border: 0.5pt 0.5pt medium medium solid solid none none black black -moz-use-text-color -moz-use-text-color;" width="64"&gt;price&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl66" height="17" style="height: 12.75pt; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt medium medium 0.5pt solid none none solid black -moz-use-text-color -moz-use-text-color black;"&gt;66929&lt;/TD&gt;&lt;TD align="right" style="font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt medium medium solid none none black -moz-use-text-color -moz-use-text-color;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl67" style="font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt 0.5pt medium medium solid solid none none black black -moz-use-text-color -moz-use-text-color;"&gt;€ 1,20&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl66" height="17" style="height: 12.75pt; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt medium medium 0.5pt solid none none solid black -moz-use-text-color -moz-use-text-color black;"&gt;66929&lt;/TD&gt;&lt;TD align="right" style="font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt medium medium solid none none black -moz-use-text-color -moz-use-text-color;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl67" style="font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt 0.5pt medium medium solid solid none none black black -moz-use-text-color -moz-use-text-color;"&gt;€ 1,20&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl66" height="17" style="height: 12.75pt; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt medium medium 0.5pt solid none none solid black -moz-use-text-color -moz-use-text-color black;"&gt;66929&lt;/TD&gt;&lt;TD align="right" style="font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt medium medium solid none none black -moz-use-text-color -moz-use-text-color;"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl67" style="font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt 0.5pt medium medium solid solid none none black black -moz-use-text-color -moz-use-text-color;"&gt;€ 1,20&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl66" height="17" style="height: 12.75pt; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt medium medium 0.5pt solid none none solid black -moz-use-text-color -moz-use-text-color black;"&gt;66929&lt;/TD&gt;&lt;TD align="right" style="font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt medium medium solid none none black -moz-use-text-color -moz-use-text-color;"&gt;4&lt;/TD&gt;&lt;TD align="right" class="xl67" style="font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt 0.5pt medium medium solid solid none none black black -moz-use-text-color -moz-use-text-color;"&gt;€ 1,25&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl66" height="17" style="height: 12.75pt; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt medium medium 0.5pt solid none none solid black -moz-use-text-color -moz-use-text-color black;"&gt;66929&lt;/TD&gt;&lt;TD align="right" style="font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt medium medium solid none none black -moz-use-text-color -moz-use-text-color;"&gt;5&lt;/TD&gt;&lt;TD align="right" class="xl67" style="font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt 0.5pt medium medium solid solid none none black black -moz-use-text-color -moz-use-text-color;"&gt;€ 1,25&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl66" height="17" style="height: 12.75pt; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt medium medium 0.5pt solid none none solid black -moz-use-text-color -moz-use-text-color black;"&gt;66929&lt;/TD&gt;&lt;TD align="right" style="font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt medium medium solid none none black -moz-use-text-color -moz-use-text-color;"&gt;6&lt;/TD&gt;&lt;TD align="right" class="xl67" style="font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt 0.5pt medium medium solid solid none none black black -moz-use-text-color -moz-use-text-color;"&gt;€ 1,25&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl66" height="17" style="height: 12.75pt; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt medium medium 0.5pt solid none none solid black -moz-use-text-color -moz-use-text-color black;"&gt;66929&lt;/TD&gt;&lt;TD align="right" style="font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt medium medium solid none none black -moz-use-text-color -moz-use-text-color;"&gt;7&lt;/TD&gt;&lt;TD align="right" class="xl67" style="font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt 0.5pt medium medium solid solid none none black black -moz-use-text-color -moz-use-text-color;"&gt;€ 1,25&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl66" height="17" style="height: 12.75pt; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt medium medium 0.5pt solid none none solid black -moz-use-text-color -moz-use-text-color black;"&gt;66929&lt;/TD&gt;&lt;TD align="right" style="font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt medium medium solid none none black -moz-use-text-color -moz-use-text-color;"&gt;8&lt;/TD&gt;&lt;TD align="right" class="xl67" style="font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt 0.5pt medium medium solid solid none none black black -moz-use-text-color -moz-use-text-color;"&gt;€ 1,25&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl66" height="17" style="height: 12.75pt; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt medium medium 0.5pt solid none none solid black -moz-use-text-color -moz-use-text-color black;"&gt;66929&lt;/TD&gt;&lt;TD align="right" style="font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt medium medium solid none none black -moz-use-text-color -moz-use-text-color;"&gt;9&lt;/TD&gt;&lt;TD align="right" class="xl67" style="font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt 0.5pt medium medium solid solid none none black black -moz-use-text-color -moz-use-text-color;"&gt;€ 1,70&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl66" height="17" style="height: 12.75pt; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt medium medium 0.5pt solid none none solid black -moz-use-text-color -moz-use-text-color black;"&gt;66929&lt;/TD&gt;&lt;TD align="right" style="font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt medium medium solid none none black -moz-use-text-color -moz-use-text-color;"&gt;10&lt;/TD&gt;&lt;TD align="right" class="xl67" style="font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt 0.5pt medium medium solid solid none none black black -moz-use-text-color -moz-use-text-color;"&gt;€ 1,70&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl66" height="17" style="height: 12.75pt; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt medium medium 0.5pt solid none none solid black -moz-use-text-color -moz-use-text-color black;"&gt;66929&lt;/TD&gt;&lt;TD align="right" style="font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt medium medium solid none none black -moz-use-text-color -moz-use-text-color;"&gt;11&lt;/TD&gt;&lt;TD align="right" class="xl67" style="font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt 0.5pt medium medium solid solid none none black black -moz-use-text-color -moz-use-text-color;"&gt;€ 1,20&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl66" height="17" style="height: 12.75pt; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt medium medium 0.5pt solid none none solid black -moz-use-text-color -moz-use-text-color black;"&gt;66929&lt;/TD&gt;&lt;TD align="right" style="font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt medium medium solid none none black -moz-use-text-color -moz-use-text-color;"&gt;12&lt;/TD&gt;&lt;TD align="right" class="xl67" style="font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt 0.5pt medium medium solid solid none none black black -moz-use-text-color -moz-use-text-color;"&gt;€ 1,20&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl66" height="17" style="height: 12.75pt; font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt medium 0.5pt 0.5pt solid none solid solid black -moz-use-text-color black black;"&gt;66929&lt;/TD&gt;&lt;TD align="right" style="font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt medium solid none black -moz-use-text-color;"&gt;13&lt;/TD&gt;&lt;TD align="right" class="xl67" style="font-size: 10pt; color: black; font-weight: 400; text-decoration: none; font-family: Arial; border: 0.5pt 0.5pt 0.5pt medium solid solid solid none black black black -moz-use-text-color;"&gt;€ 1,20&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;As you can see, in this last table I have listed all the materials one by one, according to their quantity. I have therefore three items at € 1,20, five at € 1,25 and so on.&lt;/P&gt;&lt;P&gt;In QlikView, I need two loops: one that scrolls each row and a nested one that will loop as many time as stated in the corresponding quantity. I'll thus create this second table including the RowNo() (called "no." in the example).&lt;BR /&gt;I'm able to loop all the rows, but I can't loop the single row according the the reported quantity. Any idea, please?&lt;/P&gt;&lt;P&gt;The code I've written till now is (assuming "Details" is the first table and "r" is the RecNo() of the first table, calculated and included for each row):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;LET NrRows = NoOfRows('Details');&lt;BR /&gt;LET k = 1; //counter for rows&lt;BR /&gt;DO WHILE r&amp;lt;=NrRows //loop all the rows&lt;BR /&gt; LET i=0;&lt;BR /&gt; DO WHILE i&amp;lt;PEEK(qta_originale,r,'Details'); //I need to loop the selected row as many times as quantity is. What I've writtend here doesn't work since the PEEK function is not in a load statement&lt;BR /&gt; LOAD RowNo() as n, PEEK(material,r,'Details') as material, PEEK(price,r,'Details') as price&lt;BR /&gt; RESIDENT Details;&lt;BR /&gt; i=i+1;&lt;BR /&gt; LOOP&lt;BR /&gt; k=k+1;&lt;BR /&gt;LOOP&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2009 18:41:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-all-table-rows/m-p/189630#M52435</guid>
      <dc:creator />
      <dc:date>2009-12-16T18:41:15Z</dc:date>
    </item>
    <item>
      <title>AW:Loop all table rows</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-all-table-rows/m-p/189631#M52436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I had an idea, but I don't know if it was good.&lt;/P&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;let z1=1;&lt;BR /&gt;&lt;BR /&gt;DO WHILE z1&amp;lt;=20&lt;BR /&gt; let z2=1;&lt;BR /&gt; Do While z2&amp;lt;= z1&lt;BR /&gt; Tab1:&lt;BR /&gt; LOAD * INLINE [&lt;BR /&gt; Qty&lt;BR /&gt; $(z1)&lt;BR /&gt; ];&lt;BR /&gt; let z2=z2+1;&lt;BR /&gt; LOOP&lt;BR /&gt; let z1=z1+1;&lt;BR /&gt;LOOP&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Tab1:&lt;BR /&gt;right join (Tab1) load * INLINE [&lt;BR /&gt; MatNr, Price, Qty&lt;BR /&gt; 12, 1.29, 2&lt;BR /&gt; 12, 1.88, 8&lt;BR /&gt; 12, 0.45, 2&lt;BR /&gt; 13, 12.90, 1&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;You should calculate the first table once with more numbers and store it as a QVD. Then you can load it faster.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have Fun&lt;/P&gt;&lt;P&gt;Alex:)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2009 21:38:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-all-table-rows/m-p/189631#M52436</guid>
      <dc:creator />
      <dc:date>2009-12-16T21:38:30Z</dc:date>
    </item>
    <item>
      <title>AW:Loop all table rows</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-all-table-rows/m-p/189632#M52437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, Alexander. I'll work on your idea. Now I need to include a counter in the table so I can have ordered rows.&lt;/P&gt;&lt;P&gt;Thank you for your help and time!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2009 22:53:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-all-table-rows/m-p/189632#M52437</guid>
      <dc:creator />
      <dc:date>2009-12-16T22:53:08Z</dc:date>
    </item>
    <item>
      <title>AW:Loop all table rows</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-all-table-rows/m-p/189633#M52438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's a loopless approach:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;LOAD *&lt;BR /&gt;,recno() as no&lt;BR /&gt;;&lt;BR /&gt;LOAD&lt;BR /&gt; subfield(material&amp;amp;repeat(','&amp;amp;material,qty-1),',') as material&lt;BR /&gt;,price&lt;BR /&gt;INLINE [&lt;BR /&gt;material, price, qty&lt;BR /&gt;66929,1.20,3&lt;BR /&gt;66929,1.25,5&lt;BR /&gt;66929,1.70,2&lt;BR /&gt;15894,5.10,10&lt;BR /&gt;66929,1.20,3&lt;BR /&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Dec 2009 07:01:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-all-table-rows/m-p/189633#M52438</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-12-17T07:01:23Z</dc:date>
    </item>
    <item>
      <title>AW:Loop all table rows</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-all-table-rows/m-p/189634#M52439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A completely different loopless approach:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;Raw:&lt;BR /&gt;LOAD *&lt;BR /&gt;,1 as start&lt;BR /&gt;,qty as end&lt;BR /&gt;,recno() as recno&lt;BR /&gt;INLINE [&lt;BR /&gt;material,price,qty&lt;BR /&gt;66929,1.20,3&lt;BR /&gt;66929,1.25,5&lt;BR /&gt;66929,1.70,2&lt;BR /&gt;15894,5.10,10&lt;BR /&gt;66929,1.20,3&lt;BR /&gt;];&lt;BR /&gt;Counter:&lt;BR /&gt;LOAD recno() as counter&lt;BR /&gt;AUTOGENERATE 10&lt;BR /&gt;;&lt;BR /&gt;LEFT JOIN (Counter)&lt;BR /&gt;LOAD recno&lt;BR /&gt;RESIDENT Raw&lt;BR /&gt;;&lt;BR /&gt;LEFT JOIN (Raw)&lt;BR /&gt;INTERVALMATCH(counter,recno)&lt;BR /&gt;LOAD&lt;BR /&gt; start&lt;BR /&gt;,end&lt;BR /&gt;,recno&lt;BR /&gt;RESIDENT Raw&lt;BR /&gt;;&lt;BR /&gt;Final:&lt;BR /&gt;LOAD&lt;BR /&gt; material&lt;BR /&gt;,price&lt;BR /&gt;,recno() as no&lt;BR /&gt;RESIDENT Raw&lt;BR /&gt;ORDER BY recno&lt;BR /&gt;;&lt;BR /&gt;DROP TABLES&lt;BR /&gt; Raw&lt;BR /&gt;,Counter&lt;BR /&gt;;&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Dec 2009 07:32:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-all-table-rows/m-p/189634#M52439</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-12-17T07:32:27Z</dc:date>
    </item>
    <item>
      <title>AW:Re: AW:Loop all table rows</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-all-table-rows/m-p/189635#M52440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;I would fall on my knees &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I never know what these two functions are for. Great performance ...&lt;/P&gt;&lt;P&gt;Happy Hollydays&lt;/P&gt;&lt;P&gt;Alex :-)&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Dec 2009 14:32:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-all-table-rows/m-p/189635#M52440</guid>
      <dc:creator />
      <dc:date>2009-12-17T14:32:32Z</dc:date>
    </item>
    <item>
      <title>AW:Loop all table rows</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-all-table-rows/m-p/189636#M52441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much, John. Your script does exactly what I need!&lt;/P&gt;&lt;P&gt;Thank you again for your time and for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Dec 2009 22:08:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-all-table-rows/m-p/189636#M52441</guid>
      <dc:creator />
      <dc:date>2009-12-17T22:08:36Z</dc:date>
    </item>
  </channel>
</rss>

