<?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: Creating multiple transactional lines from one line in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Creating-multiple-transactional-lines-from-one-line/m-p/515252#M693435</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See my updated post above. Hope that would help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Jun 2013 10:08:13 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2013-06-27T10:08:13Z</dc:date>
    <item>
      <title>Creating multiple transactional lines from one line</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-multiple-transactional-lines-from-one-line/m-p/515249#M693432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having trouble with a(n) (intelligent) looped statement which looks into a specific field and generates multiple trnasactional rows from it. Has anyone come across this and found a cool way of resolving it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, I have a table such as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="248"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" width="47"&gt;TxnID&lt;/TD&gt;&lt;TD class="xl64" width="58"&gt;Product&lt;/TD&gt;&lt;TD class="xl64" width="143"&gt;Info&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;A1&lt;/TD&gt;&lt;TD class="xl63"&gt;Bananas&lt;/TD&gt;&lt;TD class="xl63"&gt;Yellow&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;A2&lt;/TD&gt;&lt;TD class="xl63"&gt;Apples&lt;/TD&gt;&lt;TD class="xl63"&gt;Green;Red&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;A3&lt;/TD&gt;&lt;TD class="xl63"&gt;Pears&lt;/TD&gt;&lt;TD class="xl63"&gt;Yellow; Brown; Green&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and I want to get this out of it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="248"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" width="47"&gt;TxnID&lt;/TD&gt;&lt;TD class="xl66" width="58"&gt;Product&lt;/TD&gt;&lt;TD class="xl66" width="143"&gt;Info&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20"&gt;A1&lt;/TD&gt;&lt;TD class="xl65"&gt;Bananas&lt;/TD&gt;&lt;TD class="xl65"&gt;Yellow&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20"&gt;A2&lt;/TD&gt;&lt;TD class="xl65"&gt;Apples&lt;/TD&gt;&lt;TD class="xl65"&gt;Green&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20"&gt;A2&lt;/TD&gt;&lt;TD class="xl65"&gt;Apples&lt;/TD&gt;&lt;TD class="xl65"&gt;Red&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20"&gt;A3&lt;/TD&gt;&lt;TD class="xl65"&gt;Pears&lt;/TD&gt;&lt;TD class="xl65"&gt;Yellow&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20"&gt;A3&lt;/TD&gt;&lt;TD class="xl65"&gt;Pears&lt;/TD&gt;&lt;TD class="xl65"&gt;Brown&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20"&gt;A3&lt;/TD&gt;&lt;TD class="xl65"&gt;Pears&lt;/TD&gt;&lt;TD class="xl65"&gt;Green&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Naturally, the amount of ";" separated values in the original Info column changes depending on the table loaded and therefore, needs to change accordingly. Use of the "textBetween" function cannot be "hard-coded".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2013 09:46:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-multiple-transactional-lines-from-one-line/m-p/515249#M693432</guid>
      <dc:creator />
      <dc:date>2013-06-27T09:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: Creating multiple transactional lines from one line</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-multiple-transactional-lines-from-one-line/m-p/515250#M693433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use SUBFIELD() function in the script like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Load&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TxnID,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Product,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SubField(Info, ' ; ') as NewInfo&lt;BR /&gt; From ...........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2013 09:51:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-multiple-transactional-lines-from-one-line/m-p/515250#M693433</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-06-27T09:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: Creating multiple transactional lines from one line</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-multiple-transactional-lines-from-one-line/m-p/515251#M693434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tresesco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Subfield() is an alternative to TextBetween(). This is not the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even when using subfield(), I need to "hard-code" the substring that I am looking for. The issue is, if I take my above example, is that for apples, the subfield() function must first go fetch the first substring (green) and THEN go and fetch the 2nd substring (red).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The same goes for pears, it must first get substring (yellow), then 2nd (brown), then the 3rd (green).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore, I am looking for a smart way of looping the values with the substring parameter. Hope this makes sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2013 10:06:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-multiple-transactional-lines-from-one-line/m-p/515251#M693434</guid>
      <dc:creator />
      <dc:date>2013-06-27T10:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: Creating multiple transactional lines from one line</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-multiple-transactional-lines-from-one-line/m-p/515252#M693435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See my updated post above. Hope that would help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2013 10:08:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-multiple-transactional-lines-from-one-line/m-p/515252#M693435</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-06-27T10:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: Creating multiple transactional lines from one line</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-multiple-transactional-lines-from-one-line/m-p/515253#M693436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tresesco &amp;amp; Mohit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a million. While I was looking for a crazy loop-in-loop, not hard-coding the substring returns all values. You guys are geniuses. Many thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheenu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2013 10:27:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-multiple-transactional-lines-from-one-line/m-p/515253#M693436</guid>
      <dc:creator />
      <dc:date>2013-06-27T10:27:41Z</dc:date>
    </item>
    <item>
      <title>Re: Creating multiple transactional lines from one line</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-multiple-transactional-lines-from-one-line/m-p/515254#M693437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tresesco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Terribly sorry about not posting you as "Correct Answer" and giving you the points you deserve. I worked the strings from last to first and thought I could post two "Correct Answers".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My apologies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheenu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2013 10:33:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-multiple-transactional-lines-from-one-line/m-p/515254#M693437</guid>
      <dc:creator />
      <dc:date>2013-06-27T10:33:00Z</dc:date>
    </item>
  </channel>
</rss>

