<?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: Trim field value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Trim-field-value/m-p/1689837#M593810</link>
    <description>&lt;P&gt;Thank you, worked like a charm, also great explanation!&lt;/P&gt;&lt;P&gt;/M&lt;/P&gt;</description>
    <pubDate>Wed, 01 Apr 2020 12:46:50 GMT</pubDate>
    <dc:creator>Meg00</dc:creator>
    <dc:date>2020-04-01T12:46:50Z</dc:date>
    <item>
      <title>Trim field value</title>
      <link>https://community.qlik.com/t5/QlikView/Trim-field-value/m-p/1689767#M593806</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I'm struggling finding the right combo of functions to get this right.&lt;/P&gt;&lt;P&gt;I want to trim my object Id field below to only present the actual object Id, so I wish to trim away the string "Document\".&lt;/P&gt;&lt;P&gt;The problem is this field contains a combination of "Document\[Object Id]" and just clean object Ids.&lt;/P&gt;&lt;P&gt;Does anyone have a suggestion on how to do this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 141px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/31030iF9BD026B9B354185/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2020 10:05:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trim-field-value/m-p/1689767#M593806</guid>
      <dc:creator>Meg00</dc:creator>
      <dc:date>2020-04-01T10:05:56Z</dc:date>
    </item>
    <item>
      <title>Re: Trim field value</title>
      <link>https://community.qlik.com/t5/QlikView/Trim-field-value/m-p/1689817#M593807</link>
      <description>Is "Document\" the only string you are stripping? If so, I would use the following in the load script:&lt;BR /&gt;If(WildMatch([Object Id],'Document\*'),Trim(Mid([Object Id],10,20)),[Object Id])&lt;BR /&gt;&lt;BR /&gt;WildMatch([Object Id],'Document\*') - The Wildmatch function looks for 'Document\' in the row (I forget if '*' or '%' is the correct wildcard character)&lt;BR /&gt;&lt;BR /&gt;Trim(Mid([Object Id],10,20)) - Mid function will let you get data from a designated character. Since 'Document\' is a known quantity, we can start the string after the last character. if the length of the following text is known, you could just put that quantity in placed the 20 characters i noted. I enclosed the script in a TRIM function to clean out any extra spaces .&lt;BR /&gt;&lt;BR /&gt;hope this helps&lt;BR /&gt;Pedro</description>
      <pubDate>Wed, 01 Apr 2020 11:48:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trim-field-value/m-p/1689817#M593807</guid>
      <dc:creator>piri1069</dc:creator>
      <dc:date>2020-04-01T11:48:12Z</dc:date>
    </item>
    <item>
      <title>Re: Trim field value</title>
      <link>https://community.qlik.com/t5/QlikView/Trim-field-value/m-p/1689837#M593810</link>
      <description>&lt;P&gt;Thank you, worked like a charm, also great explanation!&lt;/P&gt;&lt;P&gt;/M&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2020 12:46:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trim-field-value/m-p/1689837#M593810</guid>
      <dc:creator>Meg00</dc:creator>
      <dc:date>2020-04-01T12:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: Trim field value</title>
      <link>https://community.qlik.com/t5/QlikView/Trim-field-value/m-p/1689844#M593812</link>
      <description>&lt;P&gt;Good Morning,&lt;/P&gt;&lt;P&gt;If i well understood your problem you probably need to&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Right(&lt;SPAN&gt;[Object Id],len([Object Id])-9)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2020 13:11:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trim-field-value/m-p/1689844#M593812</guid>
      <dc:creator>yassinemhadhbi</dc:creator>
      <dc:date>2020-04-01T13:11:23Z</dc:date>
    </item>
  </channel>
</rss>

