<?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: Using the trim function to shorten names in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-the-trim-function-to-shorten-names/m-p/745257#M266068</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The subfield() function can take a negative index, which counts from the right. (It's not clear in the doc). That's convenient for handling a variable number of delimiters. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier;"&gt;=Subfield(yourfieldname, ']', -1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;So &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier;"&gt;=SubField('[tag1][tag2]mydata',']',-1) = 'mydata'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com" rel="nofollow"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://robwunderlich.com" rel="nofollow"&gt;http://robwunderlich.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Jan 2015 18:51:12 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2015-01-21T18:51:12Z</dc:date>
    <item>
      <title>Using the trim function to shorten names</title>
      <link>https://community.qlik.com/t5/QlikView/Using-the-trim-function-to-shorten-names/m-p/745253#M266064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm having a field which contains long values.&lt;/P&gt;&lt;P&gt;All of them start with an amount of tags that I want to remove since I do not want to see them in the report.&lt;/P&gt;&lt;P&gt;The length and the tags are always different.&lt;/P&gt;&lt;P&gt;All they have in common is that they end with "] " before the actual value that I need to see starts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I never used the trim function and I'm wondering if it's somehow possible to say:&lt;/P&gt;&lt;P&gt;remove everything before and including "] " and display the rest only. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/confused.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jan 2015 18:00:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-the-trim-function-to-shorten-names/m-p/745253#M266064</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-21T18:00:45Z</dc:date>
    </item>
    <item>
      <title>Re: Using the trim function to shorten names</title>
      <link>https://community.qlik.com/t5/QlikView/Using-the-trim-function-to-shorten-names/m-p/745254#M266065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Subfield(yourfieldname, ']', 2)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jan 2015 18:06:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-the-trim-function-to-shorten-names/m-p/745254#M266065</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2015-01-21T18:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: Using the trim function to shorten names</title>
      <link>https://community.qlik.com/t5/QlikView/Using-the-trim-function-to-shorten-names/m-p/745255#M266066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;another option could be (in script or in chart)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right(field, len(field) - index(field, '['))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jan 2015 18:13:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-the-trim-function-to-shorten-names/m-p/745255#M266066</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-01-21T18:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: Using the trim function to shorten names</title>
      <link>https://community.qlik.com/t5/QlikView/Using-the-trim-function-to-shorten-names/m-p/745256#M266067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;had to add a space and use the closing brackets.. after that it worked. thanks Massimo.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jan 2015 18:33:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-the-trim-function-to-shorten-names/m-p/745256#M266067</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-21T18:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: Using the trim function to shorten names</title>
      <link>https://community.qlik.com/t5/QlikView/Using-the-trim-function-to-shorten-names/m-p/745257#M266068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The subfield() function can take a negative index, which counts from the right. (It's not clear in the doc). That's convenient for handling a variable number of delimiters. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier;"&gt;=Subfield(yourfieldname, ']', -1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;So &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier;"&gt;=SubField('[tag1][tag2]mydata',']',-1) = 'mydata'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com" rel="nofollow"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://robwunderlich.com" rel="nofollow"&gt;http://robwunderlich.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jan 2015 18:51:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-the-trim-function-to-shorten-names/m-p/745257#M266068</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2015-01-21T18:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: Using the trim function to shorten names</title>
      <link>https://community.qlik.com/t5/QlikView/Using-the-trim-function-to-shorten-names/m-p/745258#M266069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;another one:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mid(Field, Index(Field, '] ')+2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just because QlikView offers so many possibilities;-)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jan 2015 21:57:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-the-trim-function-to-shorten-names/m-p/745258#M266069</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2015-01-21T21:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: Using the trim function to shorten names</title>
      <link>https://community.qlik.com/t5/QlikView/Using-the-trim-function-to-shorten-names/m-p/745259#M266070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TextBetween(Field&amp;amp;'@','] ','@')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Although I find the already proposed subfield() solutions most intuitive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jan 2015 22:00:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-the-trim-function-to-shorten-names/m-p/745259#M266070</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2015-01-21T22:00:20Z</dc:date>
    </item>
  </channel>
</rss>

