<?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: How to split one record into many using SubField? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-split-one-record-into-many-using-SubField/m-p/682069#M673271</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'm not sure to well undestand the expected result...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe attached file OK...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Sep 2014 09:52:54 GMT</pubDate>
    <dc:creator>demoustier</dc:creator>
    <dc:date>2014-09-24T09:52:54Z</dc:date>
    <item>
      <title>How to split one record into many using SubField?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-split-one-record-into-many-using-SubField/m-p/682068#M673270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have sample date from a client, it comes in a very strange format, one line:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COR032532917ý17ý991701ý1706ý990225191ý31608ýMISC-TGT1ý1ý14171ý800ý03616ý0ý405IN14754NIM1NIMEMASCO8379ý8379ý8240083ýý&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when pasted into word the records are split:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COR&lt;BR /&gt;032&lt;BR /&gt;5329&lt;BR /&gt;17ý17ý99&lt;BR /&gt;1701ý1706ý9902&lt;BR /&gt;25191ý31608ýMISC-TGT&lt;BR /&gt;1ý1ý1&lt;BR /&gt;4171ý800ý0&lt;BR /&gt;3616ý0ý405&lt;BR /&gt;IN&lt;BR /&gt;14754&lt;BR /&gt;NIM1&lt;BR /&gt;NIMEMA&lt;BR /&gt;SCO&lt;BR /&gt;8379ý8379ý8240&lt;/P&gt;&lt;P&gt;083&lt;BR /&gt;ýý&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lines 4-9 and 15 have 3 records per line, I want to load this into Qlikview and as a result have 3 lines. I'm using the SubField but I'm ending up with every possible variation - 407 lines... I attach my qvw, I would gladly appreciate some help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kasia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 09:36:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-split-one-record-into-many-using-SubField/m-p/682068#M673270</guid>
      <dc:creator />
      <dc:date>2014-09-24T09:36:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to split one record into many using SubField?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-split-one-record-into-many-using-SubField/m-p/682069#M673271</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'm not sure to well undestand the expected result...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe attached file OK...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 09:52:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-split-one-record-into-many-using-SubField/m-p/682069#M673271</guid>
      <dc:creator>demoustier</dc:creator>
      <dc:date>2014-09-24T09:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to split one record into many using SubField?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-split-one-record-into-many-using-SubField/m-p/682070#M673272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kasia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's how subfield works, if you want to retrieve only 3 record you can use the 3 parameter version in a bucle so each iteration gets one value from 4-9 and 15 fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attach an example. I removed the qualify condition for this example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 09:56:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-split-one-record-into-many-using-SubField/m-p/682070#M673272</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2014-09-24T09:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to split one record into many using SubField?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-split-one-record-into-many-using-SubField/m-p/682071#M673273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, but that's not quite what I want to achieve, your method outputs one line and I need three lines like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture3.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/67527_Capture3.JPG.jpg" style="width: 620px; height: 68px;" /&gt;&lt;/P&gt;&lt;P&gt;The records in red are those from the fields I use SubField on&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does it make sense now?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 10:03:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-split-one-record-into-many-using-SubField/m-p/682071#M673273</guid>
      <dc:creator />
      <dc:date>2014-09-24T10:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to split one record into many using SubField?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-split-one-record-into-many-using-SubField/m-p/682072#M673274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Katarzyna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it's always 3 values in these fields you can use Load While:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @2,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @3,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; subfield(@4, 'ý', IterNo()) as @40,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; subfield(@5, 'ý', IterNo()) as @50,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; subfield(@6, 'ý', IterNo()) as @60,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; subfield(@7, 'ý', IterNo()) as @70,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; subfield(@8, 'ý', IterNo()) as @80,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; subfield(@9, 'ý', IterNo()) as @90,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @10,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @11,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @12,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @13,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @14,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; subfield(@15, 'ý', IterNo()) as @150&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @16,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @17&lt;/P&gt;&lt;P&gt;Resident Inline&lt;/P&gt;&lt;P&gt;While IterNo()&amp;lt;=3;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Ralf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 10:04:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-split-one-record-into-many-using-SubField/m-p/682072#M673274</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2014-09-24T10:04:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to split one record into many using SubField?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-split-one-record-into-many-using-SubField/m-p/682073#M673275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Ruben, that's exactly what I want!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;some records only have 2 records inside, is there a way around it without having to hardcode this part:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;For &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;i&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;=1 &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;to&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; 3 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 10:08:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-split-one-record-into-many-using-SubField/m-p/682073#M673275</guid>
      <dc:creator />
      <dc:date>2014-09-24T10:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to split one record into many using SubField?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-split-one-record-into-many-using-SubField/m-p/682074#M673276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;..or doing it dynamically using a field as indicator and count delimiters:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD ...&lt;/P&gt;&lt;P&gt;While IterNo()&amp;lt;=(substringcount(@4, 'ý')+1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Ralf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 10:09:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-split-one-record-into-many-using-SubField/m-p/682074#M673276</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2014-09-24T10:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to split one record into many using SubField?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-split-one-record-into-many-using-SubField/m-p/682075#M673277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;..I would not suggest to use a for loop on a large data set. Load While does exactly the same in an amazing speed!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 10:22:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-split-one-record-into-many-using-SubField/m-p/682075#M673277</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2014-09-24T10:22:06Z</dc:date>
    </item>
    <item>
      <title>Re: Re: How to split one record into many using SubField?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-split-one-record-into-many-using-SubField/m-p/682076#M673278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this attachment, ther is a previous step to chek the field with more records and use it in the iteration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also followed Ralf advise to use a while iteration.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 10:30:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-split-one-record-into-many-using-SubField/m-p/682076#M673278</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2014-09-24T10:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: Re: How to split one record into many using SubField?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-split-one-record-into-many-using-SubField/m-p/682077#M673280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Seems that i didn't tested it well, if there are different records with different number of 'ý' characters there will not work well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need, tell me and i'll modify accordingly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 10:35:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-split-one-record-into-many-using-SubField/m-p/682077#M673280</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2014-09-24T10:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to split one record into many using SubField?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-split-one-record-into-many-using-SubField/m-p/682078#M673282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For now we just need to let the client know that we can work with their data and it looks like we can, thank you for your first solution! The last records - 17, does have&amp;nbsp; 'ý', but we don't know what this data mean so it's hard to say at this stage.. Thank you for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 10:40:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-split-one-record-into-many-using-SubField/m-p/682078#M673282</guid>
      <dc:creator />
      <dc:date>2014-09-24T10:40:45Z</dc:date>
    </item>
  </channel>
</rss>

