<?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 Extract first word from query in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Extract-first-word-from-query/m-p/261451#M98545</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I`m not sure if I understood it. &lt;/P&gt;&lt;P&gt;Do you want to get the first word of a field in a table?&lt;/P&gt;&lt;P&gt;You can try this: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load subfield( name,' ',1) as firstWord;&lt;/P&gt;&lt;P&gt;select name from ... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The subfield function will segment the string on field name when it finds a space (' ') then, it will return&amp;nbsp; only the first subfield (1 as the last parameter).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope I got it right, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Jul 2011 18:25:12 GMT</pubDate>
    <dc:creator>erichshiino</dc:creator>
    <dc:date>2011-07-06T18:25:12Z</dc:date>
    <item>
      <title>Extract first word from query</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-first-word-from-query/m-p/261450#M98544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If i want to pull just the first word (can be of nay length) from a query, what string function can i use?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for ex: select name from... or create table ... or drop table..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so i want to display the first word in a column..from the query column.. how can i do it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2011 15:58:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-first-word-from-query/m-p/261450#M98544</guid>
      <dc:creator />
      <dc:date>2011-07-06T15:58:18Z</dc:date>
    </item>
    <item>
      <title>Extract first word from query</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-first-word-from-query/m-p/261451#M98545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I`m not sure if I understood it. &lt;/P&gt;&lt;P&gt;Do you want to get the first word of a field in a table?&lt;/P&gt;&lt;P&gt;You can try this: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load subfield( name,' ',1) as firstWord;&lt;/P&gt;&lt;P&gt;select name from ... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The subfield function will segment the string on field name when it finds a space (' ') then, it will return&amp;nbsp; only the first subfield (1 as the last parameter).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope I got it right, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2011 18:25:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-first-word-from-query/m-p/261451#M98545</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2011-07-06T18:25:12Z</dc:date>
    </item>
    <item>
      <title>Extract first word from query</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-first-word-from-query/m-p/261452#M98546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt; I agree with Erich! Need more explanation if SubField is not what you need. Please explain in detail to get expected answers.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Thanks - DV&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2011 20:40:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-first-word-from-query/m-p/261452#M98546</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2011-07-06T20:40:02Z</dc:date>
    </item>
  </channel>
</rss>

