<?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: Remove characters at start of string in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Remove-characters-at-start-of-string/m-p/55797#M9267</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wondered how long it would take you &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/grin.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much again that worked perfectly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Apr 2018 13:11:53 GMT</pubDate>
    <dc:creator>quilldew</dc:creator>
    <dc:date>2018-04-18T13:11:53Z</dc:date>
    <item>
      <title>Remove characters at start of string</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-characters-at-start-of-string/m-p/55791#M9261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Hi all,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I know this is a popular one, and I've read many threads about string functions but I can't seem to put one together to fit this particular need.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I wish to remove any character before a name. This name is preceded by numbers and spaces and a hyphen, and sometimes another separator (usually a dot). Examples are:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;1 - Name&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;12 - Name&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;23 -&amp;nbsp; Name&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;3.1 - Name&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;2- Name&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;2-Name&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Name&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;2.5 - Name - SecondPartofName&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I've tried various combinations of Trim(), Mid(), Left(), PurgeChar() but don't seem to be able to just keep the name.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I've considered using if()'s but I'm trying to keep the script fast as I'll be using this on lots of imported fields.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Any ideas?&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Many thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2018 10:01:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-characters-at-start-of-string/m-p/55791#M9261</guid>
      <dc:creator>quilldew</dc:creator>
      <dc:date>2018-04-18T10:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: Remove characters at start of string</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-characters-at-start-of-string/m-p/55792#M9262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use trim(subfield(fieldName,'-',2))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2018 10:03:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-characters-at-start-of-string/m-p/55792#M9262</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2018-04-18T10:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: Remove characters at start of string</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-characters-at-start-of-string/m-p/55793#M9263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trim(SubField(YourField,'-',2)) as Name&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2018 10:06:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-characters-at-start-of-string/m-p/55793#M9263</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2018-04-18T10:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: Remove characters at start of string</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-characters-at-start-of-string/m-p/55794#M9264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the suggestion,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately the Name sometimes also has a hyphen within the name. This gets rid of everything after the second hyphen too.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2018 10:54:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-characters-at-start-of-string/m-p/55794#M9264</guid>
      <dc:creator>quilldew</dc:creator>
      <dc:date>2018-04-18T10:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: Remove characters at start of string</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-characters-at-start-of-string/m-p/55795#M9265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Trim(Mid(FieldName, Index(FieldName, '-') + 1)) as Name&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2018 11:02:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-characters-at-start-of-string/m-p/55795#M9265</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-04-18T11:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: Remove characters at start of string</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-characters-at-start-of-string/m-p/55796#M9266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sample script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;Trim(Mid(FieldName, Index(FieldName, '-') + 1)) as Name;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FieldName&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 - Name&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12 - Name&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 23 -&amp;nbsp; Name&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3.1 - Name&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2- Name&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2-Name&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.5 - Name - SecondPartofName&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which give me this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/200021_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2018 11:05:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-characters-at-start-of-string/m-p/55796#M9266</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-04-18T11:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: Remove characters at start of string</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-characters-at-start-of-string/m-p/55797#M9267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wondered how long it would take you &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/grin.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much again that worked perfectly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2018 13:11:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-characters-at-start-of-string/m-p/55797#M9267</guid>
      <dc:creator>quilldew</dc:creator>
      <dc:date>2018-04-18T13:11:53Z</dc:date>
    </item>
  </channel>
</rss>

