<?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: Create a field extracting 'n' characters from another field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Create-a-field-extracting-n-characters-from-another-field/m-p/394337#M147052</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try: subfield(description,' ',1) as first_word&lt;/P&gt;&lt;P&gt;It treats description as a list of strings separated by a space ' '. It returns the string before the first space because of the 1 as the last parameter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Jan 2013 17:41:55 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2013-01-04T17:41:55Z</dc:date>
    <item>
      <title>Create a field extracting 'n' characters from another field</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-field-extracting-n-characters-from-another-field/m-p/394336#M147051</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;I have a table with a field called 'description', it is a text field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to create another field into the same load called 'first_word'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suppose I need a function to count the position of the first blank, and then using a function to extract from the first position to the position counted before but how should I write so?.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;description&lt;/P&gt;&lt;P&gt;EXTRACT(description, FIND&amp;amp;COUNT(BLANK))&amp;nbsp; as first_word&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2013 17:27:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-field-extracting-n-characters-from-another-field/m-p/394336#M147051</guid>
      <dc:creator />
      <dc:date>2013-01-04T17:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: Create a field extracting 'n' characters from another field</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-field-extracting-n-characters-from-another-field/m-p/394337#M147052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try: subfield(description,' ',1) as first_word&lt;/P&gt;&lt;P&gt;It treats description as a list of strings separated by a space ' '. It returns the string before the first space because of the 1 as the last parameter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2013 17:41:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-field-extracting-n-characters-from-another-field/m-p/394337#M147052</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-01-04T17:41:55Z</dc:date>
    </item>
  </channel>
</rss>

