<?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: QlikView TRIM function - need help testing in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/QlikView-TRIM-function-need-help-testing/m-p/1062633#M925067</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Marcus, thank you for your help!&amp;nbsp; While I needed the "SET Verbatim" command as shown in another answer, I would like to know more about the PURGECHAR() function.&amp;nbsp; I'm guessing that function would remove all spaces in a string, not just the "extra" ones?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Apr 2016 21:28:39 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-04-21T21:28:39Z</dc:date>
    <item>
      <title>QlikView TRIM function - need help testing</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-TRIM-function-need-help-testing/m-p/1062628#M925062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greetings, all!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm brand new to QlikView, so I apologize for this elementary question.&amp;nbsp; I'm trying to test the QV TRIM function before I employ it for a more elaborate process.&amp;nbsp; I understand how TRIM works in Excel, T-SQL, etc, so, in my mind, it should do something similar in QV.&amp;nbsp; However, I'm having an extremely difficult time even testing it!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the code below, you can see that I've created an inline table with the "F1" value in the first record containing lots of trailing spaces (the spaces before the comma delimiting the values).&amp;nbsp; The code runs fine.&amp;nbsp; But when I spin off the results of the two tables into table boxes, the "F1" value seems to be already TRIMmed.&amp;nbsp; In other words, I'm not seeing the trailing spaces in the output either before or after the TRIM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #333333; font-family: 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 11px;"&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;TestTable01:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #333333; font-family: 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 11px;"&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;INLINE&lt;/SPAN&gt; &lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;[&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #333333; font-family: 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 11px;"&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;F1, F2&lt;BR /&gt;Trim Test&amp;nbsp;&amp;nbsp;&amp;nbsp; , 1&lt;BR /&gt;]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;;&lt;BR /&gt;&lt;BR /&gt;TestTable02:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #333333; font-family: 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 11px;"&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: 'Courier New';"&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #333333; font-family: 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 11px;"&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: 'Courier New';"&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;TRIM&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;F1&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;AS&lt;/SPAN&gt; &lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;Trimmed&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #333333; font-family: 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 11px;"&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: 'Courier New';"&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;RESIDENT&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;TestTable01;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #333333; font-family: 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 11px;"&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: 'Courier New';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #333333; font-family: 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 11px;"&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: arial, helvetica, sans-serif;"&gt;What am I doing wrong here?&amp;nbsp; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/confused.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #333333; font-family: 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 11px;"&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: 'Courier New';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #333333; font-family: 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 11px;"&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: arial, helvetica, sans-serif;"&gt;Thanks in advance for your help!&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #333333; font-family: 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 11px;"&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: 'Courier New';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #333333; font-family: 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 11px;"&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: 'Courier New';"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Joel&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-TRIM-function-need-help-testing/m-p/1062628#M925062</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView TRIM function - need help testing</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-TRIM-function-need-help-testing/m-p/1062629#M925063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TestTable01:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;F1, F2&lt;/P&gt;&lt;P&gt;Trim Test&amp;nbsp;&amp;nbsp;&amp;nbsp; , 1&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TestTable02:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;*,&lt;/P&gt;&lt;P&gt;TRIM(NewValue) as NewTrimmed&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;F1 &amp;amp; Repeat( ' ', 5 ) as NewValue,&lt;/P&gt;&lt;P&gt;TRIM(F1) AS Trimmed&lt;/P&gt;&lt;P&gt;RESIDENT&lt;/P&gt;&lt;P&gt;TestTable01;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2016 17:28:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-TRIM-function-need-help-testing/m-p/1062629#M925063</guid>
      <dc:creator>oscar_ortiz</dc:creator>
      <dc:date>2016-04-20T17:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView TRIM function - need help testing</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-TRIM-function-need-help-testing/m-p/1062630#M925064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To include the spaces within the inline-load you need to wrap them within quotes like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;"&lt;SPAN style="color: maroon; font-size: 9pt; font-family: 'Courier New';"&gt;Trim Test&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;", 1&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Further trim() won't remove all types of space-chars or other not visible chars. Quite helpful are in these cases the use of keepchar() and purgechar() to control this definitely.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2016 18:18:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-TRIM-function-need-help-testing/m-p/1062630#M925064</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-04-20T18:18:34Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView TRIM function - need help testing</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-TRIM-function-need-help-testing/m-p/1062631#M925065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One thing to keep in mind, QV uses some automatisms, like trimming values, automatic number interpretations - sometimes useful, sometimes not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;W.r.t. the automatic trimming &amp;amp; in your setting, you can disable it using VERBATIM system variable:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;SET Verbatim =1;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;TestTable01:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD * INLINE [&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;F1, F2&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Trim Test&amp;nbsp;&amp;nbsp;&amp;nbsp; , 1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;];&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;TestTable02:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;TRIM(F1) AS Trimmed&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;RESIDENT&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;TestTable01;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2016 18:36:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-TRIM-function-need-help-testing/m-p/1062631#M925065</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-04-20T18:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView TRIM function - need help testing</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-TRIM-function-need-help-testing/m-p/1062632#M925066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much for your help!&amp;nbsp; I had no idea there was such a thing as "SET Verbatim"!&amp;nbsp; But that allowed my test to work properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2016 21:24:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-TRIM-function-need-help-testing/m-p/1062632#M925066</guid>
      <dc:creator />
      <dc:date>2016-04-21T21:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView TRIM function - need help testing</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-TRIM-function-need-help-testing/m-p/1062633#M925067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Marcus, thank you for your help!&amp;nbsp; While I needed the "SET Verbatim" command as shown in another answer, I would like to know more about the PURGECHAR() function.&amp;nbsp; I'm guessing that function would remove all spaces in a string, not just the "extra" ones?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2016 21:28:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-TRIM-function-need-help-testing/m-p/1062633#M925067</guid>
      <dc:creator />
      <dc:date>2016-04-21T21:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView TRIM function - need help testing</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-TRIM-function-need-help-testing/m-p/1062634#M925068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Joel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;purgechar() will remove the character regardless its position, so if you just want to remove leading and trailing white spaces, you can do it maybe using a Trim(Replace() ) combination. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/1006603"&gt;Re: Qlikview script function to remove leading spaces at the end&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2016 21:58:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-TRIM-function-need-help-testing/m-p/1062634#M925068</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-04-21T21:58:30Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView TRIM function - need help testing</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-TRIM-function-need-help-testing/m-p/1062635#M925069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Keepchar() could be imagined as a white-list and is especially useful if you could clear determine which char is a valid char (for example by only numbers). Purgechar() instead is the opposite from keepchar() and could be considered as a black-list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But are the requirements to your check-conditions more complex you will probably need to combine them with other string-functions, like in the link from &lt;A href="https://community.qlik.com/qlik-users/15823"&gt;swuehl&lt;/A&gt; above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Apr 2016 05:45:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-TRIM-function-need-help-testing/m-p/1062635#M925069</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-04-22T05:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView TRIM function - need help testing</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-TRIM-function-need-help-testing/m-p/1062636#M925070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's a very helpful insight.&amp;nbsp; Thanks, Marcus!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Apr 2016 15:12:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-TRIM-function-need-help-testing/m-p/1062636#M925070</guid>
      <dc:creator />
      <dc:date>2016-04-22T15:12:59Z</dc:date>
    </item>
  </channel>
</rss>

