<?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 Trim a field based on characters in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Trim-a-field-based-on-characters/m-p/1709777#M54493</link>
    <description>&lt;P&gt;I have a field, NAME which has data that appears as Brand-10102019-Campaign.&amp;nbsp; I want to trim this field in my script to only return the 'Brand' portion of the string. The Brand portion is not a set number of characters so doing left, 5 would not work. How can I achieve an end result of 'Brand' from the string 'Brand-10102019-Campaign'&lt;/P&gt;</description>
    <pubDate>Wed, 10 Jun 2020 13:52:11 GMT</pubDate>
    <dc:creator>evansabres</dc:creator>
    <dc:date>2020-06-10T13:52:11Z</dc:date>
    <item>
      <title>Trim a field based on characters</title>
      <link>https://community.qlik.com/t5/App-Development/Trim-a-field-based-on-characters/m-p/1709777#M54493</link>
      <description>&lt;P&gt;I have a field, NAME which has data that appears as Brand-10102019-Campaign.&amp;nbsp; I want to trim this field in my script to only return the 'Brand' portion of the string. The Brand portion is not a set number of characters so doing left, 5 would not work. How can I achieve an end result of 'Brand' from the string 'Brand-10102019-Campaign'&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jun 2020 13:52:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Trim-a-field-based-on-characters/m-p/1709777#M54493</guid>
      <dc:creator>evansabres</dc:creator>
      <dc:date>2020-06-10T13:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: Trim a field based on characters</title>
      <link>https://community.qlik.com/t5/App-Development/Trim-a-field-based-on-characters/m-p/1709779#M54494</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;if you always have the "-" symbol as delimiter you can do as below:&lt;/P&gt;&lt;P&gt;=Subfield( string, '-', 1 )&lt;/P&gt;&lt;P&gt;I hope it can helps.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jun 2020 13:54:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Trim-a-field-based-on-characters/m-p/1709779#M54494</guid>
      <dc:creator>agigliotti</dc:creator>
      <dc:date>2020-06-10T13:54:46Z</dc:date>
    </item>
  </channel>
</rss>

