<?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: If condition issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-condition-issue/m-p/938724#M650413</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nope, when ever the MESSAGE_CODE is exiting in same field then populate the MESSAGE_DESC values else populate &lt;SPAN style="font-size: 13.3333330154419px;"&gt;MESSAGE_CODE and we should not use any hard-code values to this fields.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Thanks &amp;amp; Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Ram &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Aug 2015 15:12:55 GMT</pubDate>
    <dc:creator>jelly_gvm</dc:creator>
    <dc:date>2015-08-17T15:12:55Z</dc:date>
    <item>
      <title>If condition issue</title>
      <link>https://community.qlik.com/t5/QlikView/If-condition-issue/m-p/938720#M650409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;below is my issue highlighted in red. &lt;/P&gt;&lt;P&gt;LOAD MESSAGE_CODE &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MESSAGE_DESC,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #ff6600;"&gt; &lt;SPAN style="color: #993300;"&gt;if(Len(MESSAGE_CODE)&amp;gt;0, MESSAGE_DESC,MESSAGE_CODE)) as Details&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;FROM $(path)MESSAGE_CODES.qvd;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the &lt;SPAN style="font-size: 13.3333330154419px;"&gt;MESSAGE_CODE is exists then display &lt;SPAN style="font-size: 13.3333330154419px;"&gt;MESSAGE_DESC dimension values &lt;STRONG style="color: #993300;"&gt;else&lt;/STRONG&gt; display &lt;SPAN style="font-size: 13.3333330154419px;"&gt;MESSAGE_CODE dimension values, but it is displaying &lt;SPAN style="font-size: 13.3333330154419px;"&gt;always &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;MESSAGE_CODE dimension values in the report.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one suggest me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2015 14:59:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condition-issue/m-p/938720#M650409</guid>
      <dc:creator>jelly_gvm</dc:creator>
      <dc:date>2015-08-17T14:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: If condition issue</title>
      <link>https://community.qlik.com/t5/QlikView/If-condition-issue/m-p/938721#M650410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this may be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;LOAD MESSAGE_CODE&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MESSAGE_DESC,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #993300; font-style: inherit; font-family: inherit;"&gt;if(Len(Trim(MESSAGE_CODE))&amp;gt;0, MESSAGE_DESC,MESSAGE_CODE)) as Details&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;FROM $(path)MESSAGE_CODES.qvd;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2015 15:06:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condition-issue/m-p/938721#M650410</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-08-17T15:06:02Z</dc:date>
    </item>
    <item>
      <title>Re: If condition issue</title>
      <link>https://community.qlik.com/t5/QlikView/If-condition-issue/m-p/938722#M650411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Having given a recommendation, it just doesn't make sense that when &lt;SPAN style="color: #993300; font-size: 13px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;MESSAGE_CODE &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #993300;"&gt; is not available then you want to use it for details? Are you sure you don't want this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;LOAD MESSAGE_CODE&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MESSAGE_DESC,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #993300;"&gt;if(Len(&lt;STRONG style="color: #993300; font-size: 13px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;Trim(&lt;/STRONG&gt;MESSAGE_CODE))&amp;gt;0, &lt;SPAN style="color: #993300; font-size: 13px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;MESSAGE_CODE&lt;/STRONG&gt;&lt;/SPAN&gt;,&lt;SPAN style="color: #993300; font-size: 13px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;MESSAGE_DESC&lt;/STRONG&gt;&lt;/SPAN&gt;)) as Details&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;FROM $(path)MESSAGE_CODES.qvd;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2015 15:07:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condition-issue/m-p/938722#M650411</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-08-17T15:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: If condition issue</title>
      <link>https://community.qlik.com/t5/QlikView/If-condition-issue/m-p/938723#M650412</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 suggested by Sunny, you can try using Trim functions as your Condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, worth checking how are your values in '&lt;STRONG style="color: #993300;"&gt;MESSAGE_CODE&lt;/STRONG&gt;' coming in QV and if you are getting '0' ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It could sometimes be an issue with the Flag/ Binary numbers,&lt;/P&gt;&lt;P&gt;Try using Exists () function in your Condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps !&lt;/P&gt;&lt;P&gt;Cheers !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2015 15:12:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condition-issue/m-p/938723#M650412</guid>
      <dc:creator />
      <dc:date>2015-08-17T15:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: If condition issue</title>
      <link>https://community.qlik.com/t5/QlikView/If-condition-issue/m-p/938724#M650413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nope, when ever the MESSAGE_CODE is exiting in same field then populate the MESSAGE_DESC values else populate &lt;SPAN style="font-size: 13.3333330154419px;"&gt;MESSAGE_CODE and we should not use any hard-code values to this fields.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Thanks &amp;amp; Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Ram &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2015 15:12:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condition-issue/m-p/938724#M650413</guid>
      <dc:creator>jelly_gvm</dc:creator>
      <dc:date>2015-08-17T15:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: If condition issue</title>
      <link>https://community.qlik.com/t5/QlikView/If-condition-issue/m-p/938725#M650414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it's not working my requirement could please change the IF condition.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2015 15:16:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condition-issue/m-p/938725#M650414</guid>
      <dc:creator>jelly_gvm</dc:creator>
      <dc:date>2015-08-17T15:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: If condition issue</title>
      <link>https://community.qlik.com/t5/QlikView/If-condition-issue/m-p/938726#M650415</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 style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;LOAD MESSAGE_CODE&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MESSAGE_DESC,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #993300;"&gt;if(Len(&lt;STRONG style="color: #993300; font-size: 13px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;Trim(&lt;/STRONG&gt;&lt;SPAN style="color: #993300; font-size: 13px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;MESSAGE_DESC&lt;/STRONG&gt;&lt;/SPAN&gt;))&amp;gt;0, MESSAGE_DESC,MESSAGE_CODE)) as Details&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;FROM $(path)MESSAGE_CODES.qvd;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2015 15:17:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condition-issue/m-p/938726#M650415</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-08-17T15:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: If condition issue</title>
      <link>https://community.qlik.com/t5/QlikView/If-condition-issue/m-p/938727#M650416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;According to me, there is no sense in the expression you are using because you check against null on the MESSAGE_CODE and again give the null value if condition is false. Try to use below cond:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IF(LEN(TRIM(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;MESSAGE_DESC&lt;/SPAN&gt;)),MESSAGE_DESC,MESSAGE_CODE)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2015 15:23:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condition-issue/m-p/938727#M650416</guid>
      <dc:creator />
      <dc:date>2015-08-17T15:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: If condition issue</title>
      <link>https://community.qlik.com/t5/QlikView/If-condition-issue/m-p/938728#M650417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should definitely work, check again&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TableName:&lt;/P&gt;&lt;P&gt;LOAD MESSAGE_CODE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MESSAGE_DESC,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; If(Len(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Trim&lt;/SPAN&gt;(MESSAGE_DESC))&amp;gt;0, MESSAGE_DESC,MESSAGE_CODE)) as Details&lt;/P&gt;&lt;P&gt;FROM $(path)MESSAGE_CODES.qvd;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2015 15:23:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condition-issue/m-p/938728#M650417</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-08-17T15:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: If condition issue</title>
      <link>https://community.qlik.com/t5/QlikView/If-condition-issue/m-p/938729#M650418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; Hi Ram,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&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; font-size: 13px;"&gt;Try below code:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300; font-size: 13px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300; font-size: 13px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300; font-size: 13px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;if(Len(Trim(MESSAGE_CODE))&amp;gt;0, MESSAGE_DESC,MESSAGE_CODE)) as Details&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300; font-size: 13px; font-style: inherit; font-family: inherit; font-weight: inherit;"&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; font-size: 13px;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Neetha&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2015 15:29:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condition-issue/m-p/938729#M650418</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-17T15:29:21Z</dc:date>
    </item>
    <item>
      <title>Re: If condition issue</title>
      <link>https://community.qlik.com/t5/QlikView/If-condition-issue/m-p/938730#M650419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see two problems - one in the question, and one in the suggested answers...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. The way your IF statement is formulated, you want to use the Code when the Code value doesn't exist - so, every time the code value is NULL, you want to see NULL in your field. It sounds "upside-down" to me. Usually we ask "if this value is NOT NULL, then use it, otherwise use another value".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. In the suggested solutions, people keep suggesting to use TRIM(LEN(...)), which is meaningless. The function len returns the Length of the field, which is a number. The function TRIM is only useful when it's applied to the field itself, not to its length. So, if anything, the following can be considered:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEN(TRIM(Field))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This combination of the two functions will first trim the spaces on both ends of the field, and then calculate the length of the remaining value. The meaning is to treat any number of spaces the same way as empty strings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Oleg Troyansky&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.amazon.com/gp/product/1118949552/ref=as_li_tl?ie=UTF8&amp;amp;camp=1789&amp;amp;creative=9325&amp;amp;creativeASIN=1118949552&amp;amp;linkCode=as2&amp;amp;tag=natursyner0f-20&amp;amp;linkId=7HVXLQGGDK62VROE"&gt;QlikView Your Business: An expert guide to Business Discovery with QlikView and Qlik Sense&lt;/A&gt;&lt;IMG alt="" border="0" height="1" src="http://ir-na.amazon-adsystem.com/e/ir?t=natursyner0f-20&amp;amp;l=as2&amp;amp;o=1&amp;amp;a=1118949552" style="border: none !important; margin: 0px !important;" width="1" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2015 15:30:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condition-issue/m-p/938730#M650419</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2015-08-17T15:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: If condition issue</title>
      <link>https://community.qlik.com/t5/QlikView/If-condition-issue/m-p/938731#M650420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all, it's working for me and issue with the data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2015 15:32:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condition-issue/m-p/938731#M650420</guid>
      <dc:creator>jelly_gvm</dc:creator>
      <dc:date>2015-08-17T15:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: If condition issue</title>
      <link>https://community.qlik.com/t5/QlikView/If-condition-issue/m-p/938732#M650421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Ram,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does sunny's solution solves your issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2015 15:34:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condition-issue/m-p/938732#M650421</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-17T15:34:04Z</dc:date>
    </item>
    <item>
      <title>Re: If condition issue</title>
      <link>https://community.qlik.com/t5/QlikView/If-condition-issue/m-p/938733#M650422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes the Sunny's solution is working fine for me, if you have any other solution for this issue please share it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp;Regards &lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2015 15:39:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condition-issue/m-p/938733#M650422</guid>
      <dc:creator>jelly_gvm</dc:creator>
      <dc:date>2015-08-17T15:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: If condition issue</title>
      <link>https://community.qlik.com/t5/QlikView/If-condition-issue/m-p/938734#M650423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" href="https://community.qlik.com/people/troyansky"&gt;Oleg&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for pointing out the incorrect order of the Len() and Trim() functions. I have fixed the order in the above posts, so that anyone seeing the thread in the future doesn't get confused. and I recommend &lt;A _jive_internal="true" href="https://community.qlik.com/people/jelly_gvm"&gt;Ram&lt;/A&gt;‌ to make note of the change as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2015 15:48:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condition-issue/m-p/938734#M650423</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-08-17T15:48:18Z</dc:date>
    </item>
  </channel>
</rss>

