<?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: Split one field into two columns with unorganized strings and conditional character in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Split-one-field-into-two-columns-with-unorganized-strings-and/m-p/2158502#M93880</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;use mid() &amp;amp; index() to achieve the requirement&lt;/P&gt;
&lt;P&gt;try below&lt;/P&gt;
&lt;P&gt;Load Test, Mid(Test,1,Index(Test,'w')-1) as column1, Mid(Test,Index(Test,'w')) as column2 Inline [&lt;BR /&gt;Test&lt;BR /&gt;"apple; NCST-00345; QTT; 83457; w456-IOKY-34569865"&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Prashant Sangle&lt;/P&gt;</description>
    <pubDate>Fri, 05 Jan 2024 06:47:39 GMT</pubDate>
    <dc:creator>PrashantSangle</dc:creator>
    <dc:date>2024-01-05T06:47:39Z</dc:date>
    <item>
      <title>Split one field into two columns with unorganized strings and conditional character</title>
      <link>https://community.qlik.com/t5/App-Development/Split-one-field-into-two-columns-with-unorganized-strings-and/m-p/2158481#M93878</link>
      <description>&lt;P&gt;Hello everyone, I have a column with unorganized strings like this, for example:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; apple; NCST-00345; QTT; 83457; w456-IOKY-34569865&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; banana; NEL-00985; QWZ; 345876; w-9845-mbjkh-984039842&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; avocado; 345; SGY-983457; 2344; wPOierty&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; ........&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The goal is to split this column into two columns. One column contains all the strings before "w", the other column would be include everything with "w" and after "w", like this:&amp;nbsp;&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="24px"&gt;original&amp;nbsp;&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="24px"&gt;Column one&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="24px"&gt;column two&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="46px"&gt;apple; NCST-00345; QTT; 83457; w456-IOKY-34569865&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="46px"&gt;apple; NCST-00345; QTT; 83457;&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="46px"&gt;w456-IOKY-34569865&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="46px"&gt;banana; NEL-00985; QWZ; 345876; w-9845-mbjkh-984039842&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="46px"&gt;banana; NEL-00985; QWZ; 345876;&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="46px"&gt;w-9845-mbjkh-984039842&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="46px"&gt;avocado; 345; SGY-983457; 2344; wPOierty&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="46px"&gt;avocado; 345; SGY-983457; 2344;&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="46px"&gt;wPOierty&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="24px"&gt;................&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="24px"&gt;............&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="24px"&gt;.........&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, how can I write set expressions or script code to achieve this goal? Or, what functions should I use? I tried SubField function but it's not working well. Any advice or hint would be greatly appreciated, many thanks!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2024 05:08:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Split-one-field-into-two-columns-with-unorganized-strings-and/m-p/2158481#M93878</guid>
      <dc:creator>leey8211</dc:creator>
      <dc:date>2024-01-05T05:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: Split one field into two columns with unorganized strings and conditional character</title>
      <link>https://community.qlik.com/t5/App-Development/Split-one-field-into-two-columns-with-unorganized-strings-and/m-p/2158502#M93880</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;use mid() &amp;amp; index() to achieve the requirement&lt;/P&gt;
&lt;P&gt;try below&lt;/P&gt;
&lt;P&gt;Load Test, Mid(Test,1,Index(Test,'w')-1) as column1, Mid(Test,Index(Test,'w')) as column2 Inline [&lt;BR /&gt;Test&lt;BR /&gt;"apple; NCST-00345; QTT; 83457; w456-IOKY-34569865"&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Prashant Sangle&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2024 06:47:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Split-one-field-into-two-columns-with-unorganized-strings-and/m-p/2158502#M93880</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2024-01-05T06:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: Split one field into two columns with unorganized strings and conditional character</title>
      <link>https://community.qlik.com/t5/App-Development/Split-one-field-into-two-columns-with-unorganized-strings-and/m-p/2158509#M93881</link>
      <description>&lt;P&gt;if its always the&lt;STRONG&gt; last ';' delimited string&lt;/STRONG&gt; you can also use subfield&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;load original&lt;BR /&gt;,subfield(original,subfield(original,';',-1),1) as firstCol&lt;BR /&gt;,subfield(original,';',-1) as secondCol&lt;BR /&gt;inline &lt;BR /&gt;[&lt;BR /&gt;original&lt;BR /&gt;apple; NCST-00345; QTT; 83457; w456-IOKY-34569865&lt;BR /&gt;banana; NEL-00985; QWZ; 345876; w-9845-mbjkh-984039842&lt;BR /&gt;avocado; 345; SGY-983457; 2344; wPOierty&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vinieme12_0-1704438168658.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/126567i24509C79E53B8C7F/image-size/large?v=v2&amp;amp;px=999" role="button" title="vinieme12_0-1704438168658.png" alt="vinieme12_0-1704438168658.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2024 07:02:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Split-one-field-into-two-columns-with-unorganized-strings-and/m-p/2158509#M93881</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2024-01-05T07:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: Split one field into two columns with unorganized strings and conditional character</title>
      <link>https://community.qlik.com/t5/App-Development/Split-one-field-into-two-columns-with-unorganized-strings-and/m-p/2158719#M93920</link>
      <description>&lt;P&gt;Thank you Prashant, your solution works!&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2024 19:35:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Split-one-field-into-two-columns-with-unorganized-strings-and/m-p/2158719#M93920</guid>
      <dc:creator>leey8211</dc:creator>
      <dc:date>2024-01-05T19:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: Split one field into two columns with unorganized strings and conditional character</title>
      <link>https://community.qlik.com/t5/App-Development/Split-one-field-into-two-columns-with-unorganized-strings-and/m-p/2158720#M93921</link>
      <description>&lt;P&gt;Thank you Vineeth, it helps!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2024 19:36:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Split-one-field-into-two-columns-with-unorganized-strings-and/m-p/2158720#M93921</guid>
      <dc:creator>leey8211</dc:creator>
      <dc:date>2024-01-05T19:36:32Z</dc:date>
    </item>
  </channel>
</rss>

