<?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 AW:How to make table convert  from range to sequence? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-make-table-convert-from-range-to-sequence/m-p/227806#M79898</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 would load them within a for..next similar to the exam below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Sequence:&lt;BR /&gt;LOAD * Inline [&lt;BR /&gt;userid,begin,end&lt;BR /&gt;A,10,15&lt;BR /&gt;B,12,23&lt;BR /&gt;C,11,17&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;FOR vZeile=0 to fieldvaluecount( 'userid' )-1&lt;BR /&gt; LET vUserid= peek( 'userid' , $(vZeile) ,'Sequence');&lt;BR /&gt; LET vStart= peek( 'begin' , $(vZeile) ,'Sequence');&lt;BR /&gt; LET vEnd= peek( 'end' , $(vZeile) ,'Sequence');&lt;BR /&gt;// TRACE Zeile $(vZeile): $(vUserid) from $(vStart) to $(vEnd) ;&lt;BR /&gt;&lt;BR /&gt; Tabl:&lt;BR /&gt; LOAD&lt;BR /&gt; '$(vUserid)' AS User,&lt;BR /&gt; $(vStart) + RecNo()-1 AS Value&lt;BR /&gt; AutoGenerate($(vEnd) - $(vStart) +1);&lt;BR /&gt;&lt;BR /&gt;NEXT vZeile;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;NOTES:&lt;/P&gt;&lt;P&gt;Had two timeconsuming issues:&lt;/P&gt;&lt;P&gt;First I didn't put the tablename of the peek() into single-quotes. Without quotes it works fine until using a Load()-statement within the for..next. It took me two hours of wasted time until I remembered a thread with a similar topic....&lt;/P&gt;&lt;P&gt;Next was that I used the rowno(). This is normally my favorite, but in this case recno() is the one.&lt;/P&gt;&lt;P&gt;HtH&lt;/P&gt;&lt;P&gt;Roland&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 24 Apr 2011 13:56:27 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-04-24T13:56:27Z</dc:date>
    <item>
      <title>How to make table convert  from range to sequence?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-table-convert-from-range-to-sequence/m-p/227805#M79897</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 want to conert table from&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 264pt; border-collapse: collapse;" width="351"&gt;&lt;COLGROUP&gt;&lt;COL style="width: 112pt; mso-width-source: userset; mso-width-alt: 5449;" width="149" /&gt;&lt;COL style="width: 100pt; mso-width-source: userset; mso-width-alt: 4864;" width="133" /&gt;&lt;COL style="width: 52pt; mso-width-source: userset; mso-width-alt: 2523;" width="69" /&gt;&lt;/COLGROUP&gt;&lt;TBODY&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl63" height="17" style="background-color: transparent; width: 112pt; height: 12.75pt; border: windowtext 0.5pt solid;" width="149"&gt;userid&lt;/TD&gt;&lt;TD class="xl63" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; width: 100pt; border-top: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid;" width="133"&gt;begin&lt;/TD&gt;&lt;TD class="xl63" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; width: 52pt; border-top: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid;" width="69"&gt;end&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl63" height="17" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: transparent; height: 12.75pt; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;A&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;10&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;15&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;to&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 212pt; border-collapse: collapse;" width="282"&gt;&lt;COLGROUP&gt;&lt;COL style="width: 112pt; mso-width-source: userset; mso-width-alt: 5449;" width="149" /&gt;&lt;COL style="width: 100pt; mso-width-source: userset; mso-width-alt: 4864;" width="133" /&gt;&lt;/COLGROUP&gt;&lt;TBODY&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl65" height="17" style="background-color: transparent; width: 112pt; height: 12.75pt; border: windowtext 0.5pt solid;" width="149"&gt;userid&lt;/TD&gt;&lt;TD class="xl65" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; width: 100pt; border-top: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid;" width="133"&gt;data&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl65" height="17" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: transparent; height: 12.75pt; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;A&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl65" height="17" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: transparent; height: 12.75pt; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;A&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;11&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl65" height="17" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: transparent; height: 12.75pt; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;A&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;12&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl65" height="17" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: transparent; height: 12.75pt; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;A&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;13&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl65" height="17" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: transparent; height: 12.75pt; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;A&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;14&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl65" height="17" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: transparent; height: 12.75pt; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;A&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;15&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Which funciion can I use? intervalmatch or another?&lt;/P&gt;&lt;P&gt;Thanks:)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Apr 2011 04:13:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-table-convert-from-range-to-sequence/m-p/227805#M79897</guid>
      <dc:creator />
      <dc:date>2011-04-24T04:13:24Z</dc:date>
    </item>
    <item>
      <title>AW:How to make table convert  from range to sequence?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-table-convert-from-range-to-sequence/m-p/227806#M79898</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 would load them within a for..next similar to the exam below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Sequence:&lt;BR /&gt;LOAD * Inline [&lt;BR /&gt;userid,begin,end&lt;BR /&gt;A,10,15&lt;BR /&gt;B,12,23&lt;BR /&gt;C,11,17&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;FOR vZeile=0 to fieldvaluecount( 'userid' )-1&lt;BR /&gt; LET vUserid= peek( 'userid' , $(vZeile) ,'Sequence');&lt;BR /&gt; LET vStart= peek( 'begin' , $(vZeile) ,'Sequence');&lt;BR /&gt; LET vEnd= peek( 'end' , $(vZeile) ,'Sequence');&lt;BR /&gt;// TRACE Zeile $(vZeile): $(vUserid) from $(vStart) to $(vEnd) ;&lt;BR /&gt;&lt;BR /&gt; Tabl:&lt;BR /&gt; LOAD&lt;BR /&gt; '$(vUserid)' AS User,&lt;BR /&gt; $(vStart) + RecNo()-1 AS Value&lt;BR /&gt; AutoGenerate($(vEnd) - $(vStart) +1);&lt;BR /&gt;&lt;BR /&gt;NEXT vZeile;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;NOTES:&lt;/P&gt;&lt;P&gt;Had two timeconsuming issues:&lt;/P&gt;&lt;P&gt;First I didn't put the tablename of the peek() into single-quotes. Without quotes it works fine until using a Load()-statement within the for..next. It took me two hours of wasted time until I remembered a thread with a similar topic....&lt;/P&gt;&lt;P&gt;Next was that I used the rowno(). This is normally my favorite, but in this case recno() is the one.&lt;/P&gt;&lt;P&gt;HtH&lt;/P&gt;&lt;P&gt;Roland&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Apr 2011 13:56:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-table-convert-from-range-to-sequence/m-p/227806#M79898</guid>
      <dc:creator />
      <dc:date>2011-04-24T13:56:27Z</dc:date>
    </item>
    <item>
      <title>AW:How to make table convert  from range to sequence?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-table-convert-from-range-to-sequence/m-p/227807#M79899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;STRONG&gt;Roland,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thank you for your reply. It's a good idea and the code works well.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I have another code, please give me some advice &lt;IMG alt="Big Smile" src="http://community.qlik.com/emoticons/emotion-2.gif" /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;PRE style="margin: 0px;"&gt;&lt;STRONG&gt;Sequence:&lt;BR /&gt;LOAD * Inline [&lt;BR /&gt;userid,begin,end&lt;BR /&gt;A,10,15&lt;BR /&gt;B,12,23&lt;BR /&gt;C,11,17&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt; n:&lt;BR /&gt; Load recno() as data AutoGenerate 100;&lt;BR /&gt;&lt;BR /&gt; t:&lt;BR /&gt;intervalmatch(data) load begin,end resident Sequence;&lt;BR /&gt;join load * resident Sequence;&lt;BR /&gt;drop table Sequence;&lt;BR /&gt;drop table n;&lt;BR /&gt;drop field begin;&lt;BR /&gt;drop field end;&lt;/STRONG&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;STRONG&gt;Zhou Dazhao&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Apr 2011 03:00:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-table-convert-from-range-to-sequence/m-p/227807#M79899</guid>
      <dc:creator />
      <dc:date>2011-04-25T03:00:17Z</dc:date>
    </item>
    <item>
      <title>AW:Re: AW:How to make table convert  from range to sequence?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-table-convert-from-range-to-sequence/m-p/227808#M79900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;STRONG&gt;Zhou,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;yes, nice idea. There are often different ways to solve a problem efficient.&lt;/P&gt;&lt;P&gt;See you for next discussion!&lt;/P&gt;&lt;P&gt;Roland&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Apr 2011 11:43:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-table-convert-from-range-to-sequence/m-p/227808#M79900</guid>
      <dc:creator />
      <dc:date>2011-04-25T11:43:57Z</dc:date>
    </item>
  </channel>
</rss>

