<?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 Intra record Loop in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Intra-record-Loop/m-p/188571#M51776</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use a feature of the subfield function which returns a variable number of output rows from one input row. Check the doc for details, but here's an example using your data:&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;SET ThousandSep=',';&lt;BR /&gt;SET DecimalSep='.';&lt;BR /&gt;SET MoneyThousandSep=',';&lt;BR /&gt;SET MoneyDecimalSep='.';&lt;BR /&gt;SET MoneyFormat='$#,##0.00;-$#,##0.00';&lt;BR /&gt;SET TimeFormat='h:mm:ss TT';&lt;BR /&gt;SET DateFormat='D/MM/YYYY';&lt;BR /&gt;SET TimestampFormat='D/MM/YYYY h:mm:ss[.fff] TT';&lt;BR /&gt;SET MonthNames='Jan;Feb;Mar;Apr;May;Jun;Jul;Aug;Sep;Oct;Nov;Dec';&lt;BR /&gt;SET DayNames='Mon;Tue;Wed;Thu;Fri;Sat;Sun';&lt;BR /&gt;Directory;&lt;BR /&gt;test:&lt;BR /&gt;load&lt;BR /&gt; bracket&lt;BR /&gt;,code&lt;BR /&gt;,subfield(data,'-') as num&lt;BR /&gt;;&lt;BR /&gt;load&lt;BR /&gt;bracket as bracket&lt;BR /&gt;,TextBetween(bracket,'[','-') as code&lt;BR /&gt;,mid(bracket,index(bracket,'-')+1) as data&lt;BR /&gt;where len(bracket) &amp;gt;0&lt;BR /&gt;;&lt;BR /&gt;LOAD&lt;BR /&gt;subfield(@1,']') as bracket&lt;BR /&gt;FROM&lt;BR /&gt;qvdemo.txt&lt;BR /&gt;(txt, codepage is 1252, no labels, msq);&lt;BR /&gt;/* qvdemo.txt looks like:&lt;BR /&gt;[123-2.0-22.3][124-3.0-222.3]&lt;BR /&gt;[124-10.2-9.00][124-40.1-55.22][123-40.32-365.2]&lt;BR /&gt;*/&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Sep 2010 06:10:48 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-09-06T06:10:48Z</dc:date>
    <item>
      <title>Intra record Loop</title>
      <link>https://community.qlik.com/t5/QlikView/Intra-record-Loop/m-p/188569#M51774</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;I have a field say Field1. This field contains string values like:&lt;/P&gt;&lt;P&gt;value1 - [123-2.0-22.3][124-3.0-222.3[.........].......&lt;/P&gt;&lt;P&gt;value2 - [124-10.2-9.00][124-40.1-55.22][123-40.32-365.2]........&lt;/P&gt;&lt;P&gt;Now i need to compute the 123,124...(first three digits after '[')as fields and the following 2.0, 22.3 for 123 and 3.0 , 222.3 for 124 as values too these{123,124} fields. as long as i have understood .. i need a technique of intra-record loop initially.&lt;/P&gt;&lt;P&gt;Can anybody help? I know there are so manu champs who can help !&lt;/P&gt;&lt;P&gt;Please help me out.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Sep 2010 10:23:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Intra-record-Loop/m-p/188569#M51774</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2010-09-05T10:23:10Z</dc:date>
    </item>
    <item>
      <title>Intra record Loop</title>
      <link>https://community.qlik.com/t5/QlikView/Intra-record-Loop/m-p/188570#M51775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In other words, you need a way of parsing a long string into several substring and then further parsing those substrings into smaller parts, and qualifying some of those parts as Field Names (???) or maybe Key values, and some other parts as key values?&lt;/P&gt;&lt;P&gt;You'll need to use several string functions. Take a close look at the "String Functions" chapter in the book or a Help article. Specifically, I'd look at the following functions:&lt;/P&gt;&lt;P&gt;- subfield()&lt;/P&gt;&lt;P&gt;- index()&lt;/P&gt;&lt;P&gt;- left(), mid(), right()&lt;/P&gt;&lt;P&gt;- TextBetween()&lt;/P&gt;&lt;P&gt;You'll probably need more than one LOAD statement to accomplish what you are planning to accomplish.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Sep 2010 17:15:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Intra-record-Loop/m-p/188570#M51775</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2010-09-05T17:15:01Z</dc:date>
    </item>
    <item>
      <title>Intra record Loop</title>
      <link>https://community.qlik.com/t5/QlikView/Intra-record-Loop/m-p/188571#M51776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use a feature of the subfield function which returns a variable number of output rows from one input row. Check the doc for details, but here's an example using your data:&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;SET ThousandSep=',';&lt;BR /&gt;SET DecimalSep='.';&lt;BR /&gt;SET MoneyThousandSep=',';&lt;BR /&gt;SET MoneyDecimalSep='.';&lt;BR /&gt;SET MoneyFormat='$#,##0.00;-$#,##0.00';&lt;BR /&gt;SET TimeFormat='h:mm:ss TT';&lt;BR /&gt;SET DateFormat='D/MM/YYYY';&lt;BR /&gt;SET TimestampFormat='D/MM/YYYY h:mm:ss[.fff] TT';&lt;BR /&gt;SET MonthNames='Jan;Feb;Mar;Apr;May;Jun;Jul;Aug;Sep;Oct;Nov;Dec';&lt;BR /&gt;SET DayNames='Mon;Tue;Wed;Thu;Fri;Sat;Sun';&lt;BR /&gt;Directory;&lt;BR /&gt;test:&lt;BR /&gt;load&lt;BR /&gt; bracket&lt;BR /&gt;,code&lt;BR /&gt;,subfield(data,'-') as num&lt;BR /&gt;;&lt;BR /&gt;load&lt;BR /&gt;bracket as bracket&lt;BR /&gt;,TextBetween(bracket,'[','-') as code&lt;BR /&gt;,mid(bracket,index(bracket,'-')+1) as data&lt;BR /&gt;where len(bracket) &amp;gt;0&lt;BR /&gt;;&lt;BR /&gt;LOAD&lt;BR /&gt;subfield(@1,']') as bracket&lt;BR /&gt;FROM&lt;BR /&gt;qvdemo.txt&lt;BR /&gt;(txt, codepage is 1252, no labels, msq);&lt;BR /&gt;/* qvdemo.txt looks like:&lt;BR /&gt;[123-2.0-22.3][124-3.0-222.3]&lt;BR /&gt;[124-10.2-9.00][124-40.1-55.22][123-40.32-365.2]&lt;BR /&gt;*/&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Sep 2010 06:10:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Intra-record-Loop/m-p/188571#M51776</guid>
      <dc:creator />
      <dc:date>2010-09-06T06:10:48Z</dc:date>
    </item>
    <item>
      <title>Intra record Loop</title>
      <link>https://community.qlik.com/t5/QlikView/Intra-record-Loop/m-p/188572#M51777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot Steve!&lt;/P&gt;&lt;P&gt;Your idea has helped me a lot.&lt;/P&gt;&lt;P&gt;and thank you Oleg for your reply too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Sep 2010 07:00:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Intra-record-Loop/m-p/188572#M51777</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2010-09-06T07:00:32Z</dc:date>
    </item>
  </channel>
</rss>

