<?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 a Numeric String in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-Split-a-Numeric-String/m-p/1141484#M631730</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can also try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1st Part -&amp;gt; Numeric part before any text&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Left('123456IN684123', FindOneOf('123456IN684123', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ')-1)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;or more generally&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;Left(KeyField, FindOneOf(&lt;STRONG style="font-size: 13.3333px;"&gt;KeyField&lt;/STRONG&gt;, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ')-1)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;2nd Part -&amp;gt; Rest of the key&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Right('123456IN684123', Len('123456IN684123') - FindOneOf('123456IN684123', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ')+1)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;or more generally&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;Right(&lt;STRONG style="font-size: 13.3333px;"&gt;KeyField,&lt;/STRONG&gt; Len(&lt;STRONG style="font-size: 13.3333px;"&gt;KeyField&lt;/STRONG&gt;) - FindOneOf(&lt;STRONG style="font-size: 13.3333px;"&gt;KeyField&lt;/STRONG&gt;, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ')+1)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 07 Aug 2016 05:14:39 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-08-07T05:14:39Z</dc:date>
    <item>
      <title>How to Split a Numeric String</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Split-a-Numeric-String/m-p/1141481#M631727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a key in the datamodel that is a combination of two other key. I need to separate this key into two that it was made combining with. ex 123456IN684123 is the key made using&amp;nbsp; key 123456 and key IN684123. please help me with this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You,&lt;/P&gt;&lt;P&gt;Syed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2016 19:51:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Split-a-Numeric-String/m-p/1141481#M631727</guid>
      <dc:creator />
      <dc:date>2016-08-05T19:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to Split a Numeric String</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Split-a-Numeric-String/m-p/1141482#M631728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The separator is always IN ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2016 21:24:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Split-a-Numeric-String/m-p/1141482#M631728</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2016-08-05T21:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to Split a Numeric String</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Split-a-Numeric-String/m-p/1141483#M631729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try with subfield if you always have the same separator&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=SubField('123456IN684123', 'IN', 1)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=SubField('123456IN684123', 'IN', 2)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=right('123456IN684123',&amp;nbsp; len('123456IN684123') - index('123456IN684123', 'IN') +1)&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2016 21:32:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Split-a-Numeric-String/m-p/1141483#M631729</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2016-08-05T21:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to Split a Numeric String</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Split-a-Numeric-String/m-p/1141484#M631730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can also try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1st Part -&amp;gt; Numeric part before any text&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Left('123456IN684123', FindOneOf('123456IN684123', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ')-1)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;or more generally&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;Left(KeyField, FindOneOf(&lt;STRONG style="font-size: 13.3333px;"&gt;KeyField&lt;/STRONG&gt;, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ')-1)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;2nd Part -&amp;gt; Rest of the key&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Right('123456IN684123', Len('123456IN684123') - FindOneOf('123456IN684123', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ')+1)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;or more generally&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;Right(&lt;STRONG style="font-size: 13.3333px;"&gt;KeyField,&lt;/STRONG&gt; Len(&lt;STRONG style="font-size: 13.3333px;"&gt;KeyField&lt;/STRONG&gt;) - FindOneOf(&lt;STRONG style="font-size: 13.3333px;"&gt;KeyField&lt;/STRONG&gt;, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ')+1)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Aug 2016 05:14:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Split-a-Numeric-String/m-p/1141484#M631730</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-07T05:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to Split a Numeric String</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Split-a-Numeric-String/m-p/1141485#M631731</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;quite similar a solution using any non numeric character as key delimiter:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_228128_Pic1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/133966_QlikCommunity_Thread_228128_Pic1.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14706989072652977 jive_text_macro" jivemacro_uid="_14706989072652977"&gt;
&lt;P&gt;LOAD *,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Left(Key,FindOneOf(Key,PurgeChar(Key,'0123456789'))-1) as Key1,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mid (Key,FindOneOf(Key,PurgeChar(Key,'0123456789')))&amp;nbsp; as Key2&lt;/P&gt;
&lt;P&gt;Inline [&lt;/P&gt;
&lt;P&gt;Key&lt;/P&gt;
&lt;P&gt;123456IN684123&lt;/P&gt;
&lt;P&gt;12345A678&lt;/P&gt;
&lt;P&gt;1234BCD67&lt;/P&gt;
&lt;P&gt;123EF456789&lt;/P&gt;
&lt;P&gt;12345678@9012345&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Aug 2016 23:30:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Split-a-Numeric-String/m-p/1141485#M631731</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2016-08-08T23:30:04Z</dc:date>
    </item>
  </channel>
</rss>

