<?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 Generate table with several ranges in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Generate-table-with-several-ranges/m-p/169920#M40533</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's simpler and I suspect faster with a WHILE loop:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;mt:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;pstart, pend, pdesc&lt;BR /&gt;1, 3, car&lt;BR /&gt;10, 12, van&lt;BR /&gt;15 , 16, truck&lt;BR /&gt;];&lt;BR /&gt;LEFT JOIN (mt)&lt;BR /&gt;LOAD *,pstart+iterno()-1 as pval&lt;BR /&gt;RESIDENT mt&lt;BR /&gt;WHILE pstart+iterno()-1 &amp;lt;= pend&lt;BR /&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 May 2010 21:00:49 GMT</pubDate>
    <dc:creator>johnw</dc:creator>
    <dc:date>2010-05-28T21:00:49Z</dc:date>
    <item>
      <title>Generate table with several ranges</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-table-with-several-ranges/m-p/169916#M40529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've got a table like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="0" cellspacing="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD valign="top" width="64"&gt;&lt;P&gt;pstart&lt;/P&gt;&lt;/TD&gt;&lt;TD valign="top" width="57"&gt;&lt;P&gt;pend&lt;/P&gt;&lt;/TD&gt;&lt;TD valign="top" width="76"&gt;&lt;P&gt;pdesc&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD valign="top" width="64"&gt;&lt;P&gt;1&lt;/P&gt;&lt;/TD&gt;&lt;TD valign="top" width="57"&gt;&lt;P&gt;3&lt;/P&gt;&lt;/TD&gt;&lt;TD valign="top" width="76"&gt;&lt;P&gt;car&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD valign="top" width="64"&gt;&lt;P&gt;10&lt;/P&gt;&lt;/TD&gt;&lt;TD valign="top" width="57"&gt;&lt;P&gt;12&lt;/P&gt;&lt;/TD&gt;&lt;TD valign="top" width="76"&gt;&lt;P&gt;van&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD valign="top" width="64"&gt;&lt;P&gt;15&lt;/P&gt;&lt;/TD&gt;&lt;TD valign="top" width="57"&gt;&lt;P&gt;16&lt;/P&gt;&lt;/TD&gt;&lt;TD valign="top" width="76"&gt;&lt;P&gt;truck&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;This table differs per customer.&lt;/P&gt;&lt;P&gt;Anyone suggestions how to rebuild this table like;&lt;/P&gt;&lt;P&gt;1 car&lt;BR /&gt;2 car&lt;BR /&gt;3 car&lt;BR /&gt;10 van&lt;BR /&gt;11 van&lt;BR /&gt;12 van&lt;BR /&gt;15 truck&lt;BR /&gt;16 truck&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 May 2010 16:02:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-table-with-several-ranges/m-p/169916#M40529</guid>
      <dc:creator>fred_s</dc:creator>
      <dc:date>2010-05-28T16:02:32Z</dc:date>
    </item>
    <item>
      <title>Generate table with several ranges</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-table-with-several-ranges/m-p/169917#M40530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi fred,&lt;/P&gt;&lt;P&gt;pls check the attached application&lt;/P&gt;&lt;P&gt;it shud work&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 May 2010 16:21:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-table-with-several-ranges/m-p/169917#M40530</guid>
      <dc:creator />
      <dc:date>2010-05-28T16:21:35Z</dc:date>
    </item>
    <item>
      <title>Generate table with several ranges</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-table-with-several-ranges/m-p/169918#M40531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Get the count of pdesc.&lt;/P&gt;&lt;P&gt;Then use 2 FOR loops to loop through each pdesc and assign all the numbers between pstart and pend to it.&lt;/P&gt;&lt;P&gt;In the inner loop - use concatenate LOAD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if it works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 May 2010 16:21:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-table-with-several-ranges/m-p/169918#M40531</guid>
      <dc:creator>boorgura</dc:creator>
      <dc:date>2010-05-28T16:21:46Z</dc:date>
    </item>
    <item>
      <title>Generate table with several ranges</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-table-with-several-ranges/m-p/169919#M40532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tauqueer,&lt;/P&gt;&lt;P&gt;Thanks! Just what I had in mind.&lt;/P&gt;&lt;P&gt;Rocky thanks for thinking along!&lt;/P&gt;&lt;P&gt;Tauqueer, I hope you don't mind to share your script with others, so others can view your solution without downloading the qvw.&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;mt:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt; pstart, pend, pdesc&lt;BR /&gt; 1, 3, car&lt;BR /&gt; 10, 12, van&lt;BR /&gt; 15 , 16, truck&lt;BR /&gt;];&lt;BR /&gt;let x=noofrows('mt');&lt;BR /&gt;for i=1 to $(x)&lt;BR /&gt;let y=fieldvalue('pstart',$(i));&lt;BR /&gt;let z=fieldvalue('pend',$(i));&lt;BR /&gt;for j= $(y) to $(z)&lt;BR /&gt;load $(j) as column1,fieldvalue('pdesc',$(i)) as column2 resident mt;&lt;BR /&gt;next j&lt;BR /&gt;next i&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 May 2010 16:50:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-table-with-several-ranges/m-p/169919#M40532</guid>
      <dc:creator>fred_s</dc:creator>
      <dc:date>2010-05-28T16:50:05Z</dc:date>
    </item>
    <item>
      <title>Generate table with several ranges</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-table-with-several-ranges/m-p/169920#M40533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's simpler and I suspect faster with a WHILE loop:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;mt:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;pstart, pend, pdesc&lt;BR /&gt;1, 3, car&lt;BR /&gt;10, 12, van&lt;BR /&gt;15 , 16, truck&lt;BR /&gt;];&lt;BR /&gt;LEFT JOIN (mt)&lt;BR /&gt;LOAD *,pstart+iterno()-1 as pval&lt;BR /&gt;RESIDENT mt&lt;BR /&gt;WHILE pstart+iterno()-1 &amp;lt;= pend&lt;BR /&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 May 2010 21:00:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-table-with-several-ranges/m-p/169920#M40533</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-05-28T21:00:49Z</dc:date>
    </item>
    <item>
      <title>Generate table with several ranges</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-table-with-several-ranges/m-p/169921#M40534</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;Sounds like you know the answer to just any question.&lt;BR /&gt;Your solution is even better.&lt;/P&gt;&lt;P&gt;Thanks, you're a great help to this Community.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Fred&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 May 2010 21:03:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-table-with-several-ranges/m-p/169921#M40534</guid>
      <dc:creator>fred_s</dc:creator>
      <dc:date>2010-05-29T21:03:39Z</dc:date>
    </item>
  </channel>
</rss>

