<?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: Complex Character Trimming in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Complex-Character-Trimming/m-p/799727#M282344</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Worked like a charm!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Leigh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Mar 2015 15:14:35 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-03-13T15:14:35Z</dc:date>
    <item>
      <title>Complex Character Trimming</title>
      <link>https://community.qlik.com/t5/QlikView/Complex-Character-Trimming/m-p/799725#M282342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As part of my current work - I had to cross reference a selection of part numbers for an application I'm building. While these numbers are correct - the part numbers in the third column here have extra characters tagged on at the end as the picture attached below shows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Reference Numbers Amend.jpg" class="image-1 jive-image" src="/legacyfs/online/80703_Reference Numbers Amend.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;What I would like to do here is remove the characters for part numbers in the 15-16 Levels field that begin with '-P' as this is not the required format for the data to be displayed. Can anyone help to provide an effective way of doing this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Leigh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Mar 2015 14:56:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complex-Character-Trimming/m-p/799725#M282342</guid>
      <dc:creator />
      <dc:date>2015-03-13T14:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: Complex Character Trimming</title>
      <link>https://community.qlik.com/t5/QlikView/Complex-Character-Trimming/m-p/799726#M282343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Leigh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Subfield([15-16 Levels],'-P',1) AS New Field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;will just give you the first portion of the field before the '-P'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope that helps&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Mar 2015 15:06:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complex-Character-Trimming/m-p/799726#M282343</guid>
      <dc:creator />
      <dc:date>2015-03-13T15:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: Complex Character Trimming</title>
      <link>https://community.qlik.com/t5/QlikView/Complex-Character-Trimming/m-p/799727#M282344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Worked like a charm!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Leigh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Mar 2015 15:14:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complex-Character-Trimming/m-p/799727#M282344</guid>
      <dc:creator />
      <dc:date>2015-03-13T15:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: Complex Character Trimming</title>
      <link>https://community.qlik.com/t5/QlikView/Complex-Character-Trimming/m-p/799728#M282345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No problem glad to help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That only really work if the field value is always -pxxx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if there is potential for that to differ, something like the below might work better.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left( KeepChar([15-16 Levels],'0123456789-') ,index(KeepChar([15-16 Levels],'0123456789-') ,'-',-1) -1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Mar 2015 15:22:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complex-Character-Trimming/m-p/799728#M282345</guid>
      <dc:creator />
      <dc:date>2015-03-13T15:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: Complex Character Trimming</title>
      <link>https://community.qlik.com/t5/QlikView/Complex-Character-Trimming/m-p/799729#M282346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;As Simmons mentioned Subfield which functions stunningly superb. &lt;/P&gt;&lt;P&gt;The below would give you as you required. &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Provided if the right end of value have only 3 chars after hyphen '-'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left([15-16 Levels], Len(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;[15-16 Levels])-4)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;BR /&gt;Vish.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Mar 2015 15:32:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complex-Character-Trimming/m-p/799729#M282346</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2015-03-13T15:32:54Z</dc:date>
    </item>
  </channel>
</rss>

