<?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 split a  field into different fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/split-a-field-into-different-fields/m-p/666775#M242573</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a field named 'sources'. For examples 1A_florida, 1B_florida, 1C_florida, 1A_georgia, 1B_georgia, 1C_georgia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I want to create a new field '1A', '1B', '1C'. What is the best way to do this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Aug 2014 14:37:23 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-08-12T14:37:23Z</dc:date>
    <item>
      <title>split a  field into different fields</title>
      <link>https://community.qlik.com/t5/QlikView/split-a-field-into-different-fields/m-p/666775#M242573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a field named 'sources'. For examples 1A_florida, 1B_florida, 1C_florida, 1A_georgia, 1B_georgia, 1C_georgia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I want to create a new field '1A', '1B', '1C'. What is the best way to do this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2014 14:37:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/split-a-field-into-different-fields/m-p/666775#M242573</guid>
      <dc:creator />
      <dc:date>2014-08-12T14:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: split a  field into different fields</title>
      <link>https://community.qlik.com/t5/QlikView/split-a-field-into-different-fields/m-p/666776#M242574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Best way is use Subfield function see the example for that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD sources,&lt;STRONG&gt;SubField(sources,'_',1) as Newsources&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;LOAD * Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;sources&lt;/P&gt;&lt;P&gt;1A_florida&lt;/P&gt;&lt;P&gt;1B_florida&lt;/P&gt;&lt;P&gt;1C_florida&lt;/P&gt;&lt;P&gt;1A_georgia&lt;/P&gt;&lt;P&gt;1B_georgia&lt;/P&gt;&lt;P&gt;1C_georgia&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2014 14:47:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/split-a-field-into-different-fields/m-p/666776#M242574</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-08-12T14:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: split a  field into different fields</title>
      <link>https://community.qlik.com/t5/QlikView/split-a-field-into-different-fields/m-p/666777#M242575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what does the 1 mean in (sources, '_', 1) ? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2014 15:35:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/split-a-field-into-different-fields/m-p/666777#M242575</guid>
      <dc:creator />
      <dc:date>2014-08-12T15:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: split a  field into different fields</title>
      <link>https://community.qlik.com/t5/QlikView/split-a-field-into-different-fields/m-p/666778#M242576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Subfield() extracts&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;from the string specified in the &lt;EM&gt;first&lt;/EM&gt; parameter, &lt;/LI&gt;&lt;LI&gt;using the separator specified in the &lt;EM&gt;second&lt;/EM&gt; parameter, all values (if there is no third parameter) &lt;/LI&gt;&lt;LI&gt;or the position specified in &lt;EM&gt;third&lt;/EM&gt; parameter regarding the separator.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;In your case, the first position. If you specify 2 instead you will get "florida" and "georgia".&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2014 15:37:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/split-a-field-into-different-fields/m-p/666778#M242576</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2014-08-12T15:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: split a  field into different fields</title>
      <link>https://community.qlik.com/t5/QlikView/split-a-field-into-different-fields/m-p/666779#M242577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have some fields that also that are 1Bflorida and 1Bgeorgia without the _ delimiter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I wanted to create a new field with all '1B' values, what third parameter would I use to show me both 1Bflorida and 1B_florida&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2014 15:48:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/split-a-field-into-different-fields/m-p/666779#M242577</guid>
      <dc:creator />
      <dc:date>2014-08-12T15:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: split a  field into different fields</title>
      <link>https://community.qlik.com/t5/QlikView/split-a-field-into-different-fields/m-p/666780#M242578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If that is the case, then you need to use the Left() function instead, and keep only the first two characters:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left('1Bflorida', 2) // returns 1B&lt;/P&gt;&lt;P&gt;Left('1B_florida', 2) // also returns 1B&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2014 15:51:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/split-a-field-into-different-fields/m-p/666780#M242578</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2014-08-12T15:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: split a  field into different fields</title>
      <link>https://community.qlik.com/t5/QlikView/split-a-field-into-different-fields/m-p/666781#M242579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That won't work because then I will have to go through each single 'source' (there are over 100 sources) and do the left() function&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2014 15:57:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/split-a-field-into-different-fields/m-p/666781#M242579</guid>
      <dc:creator />
      <dc:date>2014-08-12T15:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: split a  field into different fields</title>
      <link>https://community.qlik.com/t5/QlikView/split-a-field-into-different-fields/m-p/666782#M242580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Miguel's solution works:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN class="s2"&gt; &lt;/SPAN&gt;sources&lt;SPAN class="s2"&gt;,&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;left&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;(&lt;/SPAN&gt;sources&lt;SPAN class="s2"&gt;,2) &lt;/SPAN&gt;&lt;SPAN class="s1"&gt;as&lt;/SPAN&gt;&lt;SPAN class="s2"&gt; &lt;/SPAN&gt;Newsources&lt;SPAN class="s2"&gt;;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN class="s2"&gt; * &lt;/SPAN&gt;&lt;SPAN class="s1"&gt;Inline&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;&lt;BR /&gt; &lt;/SPAN&gt;[&lt;BR /&gt; sources&lt;BR /&gt; 1A_florida&lt;BR /&gt; 1B_florida&lt;BR /&gt; 1C_florida&lt;BR /&gt; 1A_georgia&lt;BR /&gt; 1B_georgia&lt;BR /&gt; 1C_georgia&lt;BR /&gt; ]&lt;SPAN class="s2"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2014 16:03:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/split-a-field-into-different-fields/m-p/666782#M242580</guid>
      <dc:creator />
      <dc:date>2014-08-12T16:03:38Z</dc:date>
    </item>
    <item>
      <title>Re: split a  field into different fields</title>
      <link>https://community.qlik.com/t5/QlikView/split-a-field-into-different-fields/m-p/666783#M242581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the expression &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;(sources, '_', 1)&amp;nbsp; 1 is parameter means from the first position in the source field extract the string. As Miguel explain if your requirement is that in the string there is no symbol _ then use left function and if you know you have to pick only first two word then use left function.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2014 16:13:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/split-a-field-into-different-fields/m-p/666783#M242581</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-08-12T16:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: split a  field into different fields</title>
      <link>https://community.qlik.com/t5/QlikView/split-a-field-into-different-fields/m-p/666784#M242582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does this mean that the source could be longer than 2 characters?&lt;/P&gt;&lt;P&gt;Can you post some more examples to clarify the range of possible values?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2014 16:17:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/split-a-field-into-different-fields/m-p/666784#M242582</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2014-08-12T16:17:53Z</dc:date>
    </item>
    <item>
      <title>Re: split a  field into different fields</title>
      <link>https://community.qlik.com/t5/QlikView/split-a-field-into-different-fields/m-p/666785#M242583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was thinking of displaying it in a different way but Miquel's solution is actually a better idea. Thanks everyone for their contribution. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2014 16:35:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/split-a-field-into-different-fields/m-p/666785#M242583</guid>
      <dc:creator />
      <dc:date>2014-08-12T16:35:54Z</dc:date>
    </item>
  </channel>
</rss>

