<?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: Subfield multiple spaces in field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Subfield-multiple-spaces-in-field/m-p/1685264#M593312</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Identify index of the first space (' ') using index() and cut the string starting from there to end using&amp;nbsp; mid(), like:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Mid(myfield,Index(myfield, ' '))&amp;nbsp; as Country&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 17 Mar 2020 09:17:30 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2020-03-17T09:17:30Z</dc:date>
    <item>
      <title>Subfield multiple spaces in field</title>
      <link>https://community.qlik.com/t5/QlikView/Subfield-multiple-spaces-in-field/m-p/1685257#M593311</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am having a field which looks like the below:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Asia Japan&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Asia South Korea&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;America United States&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;America Canada&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Europe Germany&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I woud like to split this now into two fields. One for Region and one for Country.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My idea was using subfield like: "Subfield(myfield,' ',1) as Region" &amp;amp; "Subfield(myfield,' ',2) as Country"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But with this I would cut off the "Korea" of South Korea and the "States" of United States.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Does anyone have an idea how to achieve this properly? Does this work with subfield at all?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:02:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subfield-multiple-spaces-in-field/m-p/1685257#M593311</guid>
      <dc:creator>tobiasaechter</dc:creator>
      <dc:date>2024-11-16T01:02:25Z</dc:date>
    </item>
    <item>
      <title>Re: Subfield multiple spaces in field</title>
      <link>https://community.qlik.com/t5/QlikView/Subfield-multiple-spaces-in-field/m-p/1685264#M593312</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Identify index of the first space (' ') using index() and cut the string starting from there to end using&amp;nbsp; mid(), like:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Mid(myfield,Index(myfield, ' '))&amp;nbsp; as Country&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Mar 2020 09:17:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subfield-multiple-spaces-in-field/m-p/1685264#M593312</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2020-03-17T09:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: Subfield multiple spaces in field</title>
      <link>https://community.qlik.com/t5/QlikView/Subfield-multiple-spaces-in-field/m-p/1685274#M593313</link>
      <description>&lt;P&gt;Thanks for the idea.&lt;/P&gt;&lt;P&gt;using your script I always had a blank in front of the country names. So I edited it a little bit and now it works perfectly&lt;/P&gt;&lt;P&gt;I am using the following now:&amp;nbsp;&lt;SPAN&gt;Mid(myfield,Index(myfield, ' ')+1)&amp;nbsp; as Country&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Mar 2020 09:40:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subfield-multiple-spaces-in-field/m-p/1685274#M593313</guid>
      <dc:creator>tobiasaechter</dc:creator>
      <dc:date>2020-03-17T09:40:04Z</dc:date>
    </item>
  </channel>
</rss>

