<?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: Exclude data in a field after (-) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Exclude-data-in-a-field-after/m-p/412056#M153405</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Probably something like this would suit you best:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEFT(FieldName, index(FieldName,' -') ) as FieldName1,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keep in mind this has a space before the - assuming you have that in your example above.&amp;nbsp; If you don't simply change the inside of the index part to '-'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Jan 2013 17:15:14 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-01-10T17:15:14Z</dc:date>
    <item>
      <title>Exclude data in a field after (-)</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-data-in-a-field-after/m-p/412053#M153402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i do this in the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a field and the values in it like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FieldName&lt;/P&gt;&lt;P&gt;New York - ABC&lt;/P&gt;&lt;P&gt;Atlanta - ABCD&lt;/P&gt;&lt;P&gt;Miami - RF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I get a field to be like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field Name1 &lt;/P&gt;&lt;P&gt;New York&lt;/P&gt;&lt;P&gt;Atlanta&lt;/P&gt;&lt;P&gt;Miami&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So basically i want to exclude anything after from the dash and over.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thxs for your help&lt;/P&gt;&lt;P&gt;Alec&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2013 17:03:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-data-in-a-field-after/m-p/412053#M153402</guid>
      <dc:creator>alec1982</dc:creator>
      <dc:date>2013-01-10T17:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude data in a field after (-)</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-data-in-a-field-after/m-p/412054#M153403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;subfield(FieldName, '-', 1)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2013 17:14:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-data-in-a-field-after/m-p/412054#M153403</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2013-01-10T17:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude data in a field after (-)</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-data-in-a-field-after/m-p/412055#M153404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Load subfield(FieldName, '-', 1) as NewField&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2013 17:14:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-data-in-a-field-after/m-p/412055#M153404</guid>
      <dc:creator>disqr_rm</dc:creator>
      <dc:date>2013-01-10T17:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude data in a field after (-)</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-data-in-a-field-after/m-p/412056#M153405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Probably something like this would suit you best:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEFT(FieldName, index(FieldName,' -') ) as FieldName1,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keep in mind this has a space before the - assuming you have that in your example above.&amp;nbsp; If you don't simply change the inside of the index part to '-'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2013 17:15:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-data-in-a-field-after/m-p/412056#M153405</guid>
      <dc:creator />
      <dc:date>2013-01-10T17:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude data in a field after (-)</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-data-in-a-field-after/m-p/412057#M153406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess I found it but just in case someone else needs a solution I used &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SubField(FieldName,'-',1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thxs,&lt;/P&gt;&lt;P&gt;Alec&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2013 17:18:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-data-in-a-field-after/m-p/412057#M153406</guid>
      <dc:creator>alec1982</dc:creator>
      <dc:date>2013-01-10T17:18:17Z</dc:date>
    </item>
  </channel>
</rss>

