<?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 Breaking strings to fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Breaking-strings-to-fields/m-p/172400#M41962</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dears,&lt;/P&gt;&lt;P&gt;I am trying to convert some data, which come in a format like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;100110 Durum wheat 100111 Seed 100119 Other 100190 Seed, White, Other&lt;BR /&gt;100200 Rye&lt;BR /&gt;100300 Barley&lt;BR /&gt;100400 Oats 100410 Seed 100480 Other&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;I would like to convert it into a databaseform like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;CODE DECRIPTION&lt;BR /&gt;100110 Durum wheat&lt;BR /&gt;100111 Seed&lt;BR /&gt;100119 Other&lt;BR /&gt;100190 Seed, White, Other&lt;BR /&gt;100200 Rye&lt;BR /&gt;100300 Barley&lt;BR /&gt;100400 Oats&lt;BR /&gt;100410 Seed&lt;BR /&gt;100480 Other&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Do you have an idea, how to break up the individual lines, of which each may have betw 1 and 100 different records?&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Dec 2009 19:20:34 GMT</pubDate>
    <dc:creator>prieper</dc:creator>
    <dc:date>2009-12-02T19:20:34Z</dc:date>
    <item>
      <title>Breaking strings to fields</title>
      <link>https://community.qlik.com/t5/QlikView/Breaking-strings-to-fields/m-p/172400#M41962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dears,&lt;/P&gt;&lt;P&gt;I am trying to convert some data, which come in a format like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;100110 Durum wheat 100111 Seed 100119 Other 100190 Seed, White, Other&lt;BR /&gt;100200 Rye&lt;BR /&gt;100300 Barley&lt;BR /&gt;100400 Oats 100410 Seed 100480 Other&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;I would like to convert it into a databaseform like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;CODE DECRIPTION&lt;BR /&gt;100110 Durum wheat&lt;BR /&gt;100111 Seed&lt;BR /&gt;100119 Other&lt;BR /&gt;100190 Seed, White, Other&lt;BR /&gt;100200 Rye&lt;BR /&gt;100300 Barley&lt;BR /&gt;100400 Oats&lt;BR /&gt;100410 Seed&lt;BR /&gt;100480 Other&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Do you have an idea, how to break up the individual lines, of which each may have betw 1 and 100 different records?&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2009 19:20:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Breaking-strings-to-fields/m-p/172400#M41962</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2009-12-02T19:20:34Z</dc:date>
    </item>
    <item>
      <title>AW:Breaking strings to fields</title>
      <link>https://community.qlik.com/t5/QlikView/Breaking-strings-to-fields/m-p/172401#M41963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;how about a replace ' 1' (blank+1) with ';1' and then the use of subfield? This would work if code is starting with '1' every time..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;load left(code_desc, 1 6) as CODE, mid(code_desc, 7) as DESCRIPTION;&lt;BR /&gt;load subfield(replace(field, ' 1', ';1'), ';') as code_desc from ...;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;- Ralf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2009 19:40:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Breaking-strings-to-fields/m-p/172401#M41963</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2009-12-02T19:40:13Z</dc:date>
    </item>
    <item>
      <title>AW:Breaking strings to fields</title>
      <link>https://community.qlik.com/t5/QlikView/Breaking-strings-to-fields/m-p/172402#M41964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ralf,&lt;/P&gt;&lt;P&gt;The cracking of the string into individual fields it not the problem, the problem I see, is how to convert them into into individual records?&lt;/P&gt;&lt;P&gt;So one idea might be to insert in the text-file at each code-number a CRLF, but have no clue, how to do.&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2009 20:22:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Breaking-strings-to-fields/m-p/172402#M41964</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2009-12-02T20:22:53Z</dc:date>
    </item>
    <item>
      <title>AW:Breaking strings to fields</title>
      <link>https://community.qlik.com/t5/QlikView/Breaking-strings-to-fields/m-p/172403#M41965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tried to crack the lines with kind of brute force, with a loop counting from i=1 to 100 and then using the construct with Substring(Line, Digit, $(i)), but wonder whether there is a more elegant solution.&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2009 21:09:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Breaking-strings-to-fields/m-p/172403#M41965</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2009-12-02T21:09:33Z</dc:date>
    </item>
    <item>
      <title>AW:Re: AW:Breaking strings to fields</title>
      <link>https://community.qlik.com/t5/QlikView/Breaking-strings-to-fields/m-p/172404#M41966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This will do the subfield function without the third parameter. Can you upload a sample? I would make a small app..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2009 21:26:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Breaking-strings-to-fields/m-p/172404#M41966</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2009-12-02T21:26:36Z</dc:date>
    </item>
    <item>
      <title>AW:Re: AW:Breaking strings to fields</title>
      <link>https://community.qlik.com/t5/QlikView/Breaking-strings-to-fields/m-p/172405#M41967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;I made an example app with your data from the first post. There you can see how this goes..&lt;/P&gt;&lt;P&gt;- Ralf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2009 21:42:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Breaking-strings-to-fields/m-p/172405#M41967</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2009-12-02T21:42:53Z</dc:date>
    </item>
    <item>
      <title>AW:Re: AW:Breaking strings to fields</title>
      <link>https://community.qlik.com/t5/QlikView/Breaking-strings-to-fields/m-p/172406#M41968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Works! Had only the three-parameter-variant in mind - sometimes it is worth to read the manual.&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Have a nice day!&lt;BR /&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2009 22:09:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Breaking-strings-to-fields/m-p/172406#M41968</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2009-12-02T22:09:40Z</dc:date>
    </item>
  </channel>
</rss>

