<?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 statement with special characters in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/if-statement-with-special-characters/m-p/470347#M175643</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;- and ' ' is treated as character and you can not do greater than or less than of some character values... for this to happen you need to convert the chartacter value to corresponding numerical value..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that is why i have used ord() function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sushil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 May 2013 09:57:18 GMT</pubDate>
    <dc:creator>sushil353</dc:creator>
    <dc:date>2013-05-17T09:57:18Z</dc:date>
    <item>
      <title>if statement with special characters</title>
      <link>https://community.qlik.com/t5/QlikView/if-statement-with-special-characters/m-p/470344#M175640</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 not unterstand why the folling if statement produce a 'no' ,because a special character '-' more than&amp;nbsp; space character like '&amp;nbsp; '? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if( '-' &amp;gt; '&amp;nbsp; ','yes','no')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;result : no&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have anyone an idea what operation QlikView do in the bakground ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2013 09:30:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-statement-with-special-characters/m-p/470344#M175640</guid>
      <dc:creator />
      <dc:date>2013-05-17T09:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: if statement with special characters</title>
      <link>https://community.qlik.com/t5/QlikView/if-statement-with-special-characters/m-p/470345#M175641</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;Use this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if( ord('-') &amp;gt; ord(' '),'yes','no')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Sushil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2013 09:34:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-statement-with-special-characters/m-p/470345#M175641</guid>
      <dc:creator>sushil353</dc:creator>
      <dc:date>2013-05-17T09:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: if statement with special characters</title>
      <link>https://community.qlik.com/t5/QlikView/if-statement-with-special-characters/m-p/470346#M175642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes this works, but is this behaviour when i not use ord function normal in QlikView that '-' ist not more than '&amp;nbsp; ' ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2013 09:39:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-statement-with-special-characters/m-p/470346#M175642</guid>
      <dc:creator />
      <dc:date>2013-05-17T09:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: if statement with special characters</title>
      <link>https://community.qlik.com/t5/QlikView/if-statement-with-special-characters/m-p/470347#M175643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;- and ' ' is treated as character and you can not do greater than or less than of some character values... for this to happen you need to convert the chartacter value to corresponding numerical value..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that is why i have used ord() function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sushil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2013 09:57:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-statement-with-special-characters/m-p/470347#M175643</guid>
      <dc:creator>sushil353</dc:creator>
      <dc:date>2013-05-17T09:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: if statement with special characters</title>
      <link>https://community.qlik.com/t5/QlikView/if-statement-with-special-characters/m-p/470348#M175644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please close the issues by marking the correct answer when the solution has been given as desired.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gaurav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2013 11:27:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-statement-with-special-characters/m-p/470348#M175644</guid>
      <dc:creator>gaurav2017</dc:creator>
      <dc:date>2013-05-17T11:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: if statement with special characters</title>
      <link>https://community.qlik.com/t5/QlikView/if-statement-with-special-characters/m-p/470349#M175645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" href="https://community.qlik.com/people/pkrolicki" id="jive-5267122170412389530600" style="background-color: #ffffff; font-size: 12px; color: #007fc0; text-decoration: initial; font-weight: bold; font-family: Arial; text-align: center;"&gt;pkrolicki&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume there is another value in the field...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried the following and the result is always "YES".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tmp:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [test,test2&lt;/P&gt;&lt;P&gt;-,&lt;/P&gt;&lt;P&gt;'-',''];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TEST:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;//IF(test &amp;gt; test2,'YES','NO') AS bla&amp;nbsp; // --&amp;gt; YES&lt;/P&gt;&lt;P&gt;IF(test &amp;gt; '','YES','NO') AS bla&amp;nbsp; // --&amp;gt; YES&lt;/P&gt;&lt;P&gt;//IF(test &amp;gt; null(),'YES','NO') AS bla // --&amp;gt; NO&lt;/P&gt;&lt;P&gt;RESIDENT tmp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps there is a difference between ' ' and '' ... the blank between the quotes. I don't know if you have a blank in your example. You could check this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- PS -&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2013 11:57:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-statement-with-special-characters/m-p/470349#M175645</guid>
      <dc:creator>peschu123</dc:creator>
      <dc:date>2013-05-17T11:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: if statement with special characters</title>
      <link>https://community.qlik.com/t5/QlikView/if-statement-with-special-characters/m-p/470350#M175646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes a blank is between the ' ' . I think the comparison beetween '-' and&amp;nbsp; '&amp;nbsp; ' is for QV unlogical.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2013 13:16:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-statement-with-special-characters/m-p/470350#M175646</guid>
      <dc:creator />
      <dc:date>2013-05-17T13:16:07Z</dc:date>
    </item>
    <item>
      <title>Re: if statement with special characters</title>
      <link>https://community.qlik.com/t5/QlikView/if-statement-with-special-characters/m-p/470351#M175647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or a blank is &amp;gt; than '-' for QV&amp;nbsp; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt; ...is it necessary to have fields with a blank? In some cases this can be very confusing...? I think simple comparing(greater as..)of chars is unlogical at all..ok with abc you could do the ranking based on the alphabet etc. . And that a char is greater than no char could be logical too. But "minus" vs. "blank" ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps the function chr() can help you in some situations...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2013 13:27:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-statement-with-special-characters/m-p/470351#M175647</guid>
      <dc:creator>peschu123</dc:creator>
      <dc:date>2013-05-17T13:27:41Z</dc:date>
    </item>
    <item>
      <title>Re: if statement with special characters</title>
      <link>https://community.qlik.com/t5/QlikView/if-statement-with-special-characters/m-p/470352#M175648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could be QV is trying to resolve the '-' as a numerical negative rather than just hyphen. Consider this equation ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=if('-0.6'&amp;gt;'-0.5',1,2)&lt;/STRONG&gt; ... which returns 2. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Textually&amp;nbsp; '-0.6' comes after&amp;nbsp; '-0.5' but QV resolves the values to numbers and correctly calculates the numerical comparison where -0.6 is less than -0.5. If '-' is resolved as a number and the other value is text, they cannot be compared and cannot be true, therefore false.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Think only Qliktech could confirm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;flipside&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2013 13:53:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-statement-with-special-characters/m-p/470352#M175648</guid>
      <dc:creator>flipside</dc:creator>
      <dc:date>2013-05-17T13:53:09Z</dc:date>
    </item>
    <item>
      <title>Re: if statement with special characters</title>
      <link>https://community.qlik.com/t5/QlikView/if-statement-with-special-characters/m-p/470353#M175649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes it could be so but why the result for the following&amp;nbsp; :&lt;/P&gt;&lt;P&gt;1:&lt;/P&gt;&lt;P&gt;Load * Inline&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[a&lt;/P&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;&lt;P&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;&lt;/P&gt;&lt;P&gt;2:&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if( a &amp;gt; ' ','yes','no'),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;* resident 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is : no&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; no&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; yes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; yes &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; yes &lt;/P&gt;&lt;P&gt;? It seems to be a logic behind it ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2013 14:14:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-statement-with-special-characters/m-p/470353#M175649</guid>
      <dc:creator />
      <dc:date>2013-05-17T14:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: if statement with special characters</title>
      <link>https://community.qlik.com/t5/QlikView/if-statement-with-special-characters/m-p/470354#M175650</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;Please refer to the attachment &amp;amp; do analysis by selecting the values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is this what you wanted?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2013 17:10:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-statement-with-special-characters/m-p/470354#M175650</guid>
      <dc:creator>gaurav2017</dc:creator>
      <dc:date>2013-05-17T17:10:27Z</dc:date>
    </item>
  </channel>
</rss>

