<?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: Comparing floats in QlikSense expressions not working in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Comparing-floats-in-QlikSense-expressions-not-working/m-p/1232475#M24112</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using this comparison in the Color and Presentation tab of a bar chart in an attempt to &lt;EM&gt;Color by Expression.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The actual example ends up being closer to this:&lt;/P&gt;&lt;P&gt;COUNT(A) is a set analysis expression&lt;/P&gt;&lt;P&gt;COUNT(B) is a set analysis expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If (&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;COUNT(A)/COUNT(B)&lt;STRONG&gt;)&lt;/STRONG&gt; &amp;gt; Avg(Aggr&lt;STRONG&gt;(&lt;/STRONG&gt;COUNT(A)/COUNT(B),&lt;EM&gt;DIMENSION&lt;/EM&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;),&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;rgb(250,50,50),&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;rgb(50,250,50)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The IF statement always evaluates as False. Even if I change the &lt;STRONG&gt;greater than&lt;/STRONG&gt; sign to a &lt;STRONG&gt;less than&lt;/STRONG&gt; sign.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Mar 2017 13:57:38 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-03-21T13:57:38Z</dc:date>
    <item>
      <title>Comparing floats in QlikSense expressions not working</title>
      <link>https://community.qlik.com/t5/App-Development/Comparing-floats-in-QlikSense-expressions-not-working/m-p/1232472#M24109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've come across this issue multiple times, but am unable to find any troubleshooting methods online. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;field A is a numeric(18,2) data type&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this example, A is equal to 0.82&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;if(A&amp;gt;0,'True','False') will always return False&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;if(A&amp;gt;0.00,'True','False') will always return False&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;if(A&amp;lt;0.00,'True','False') will always return False&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;For whatever reason, every comparison evaluation I do on floats returns False. Has anyone discovered a workaround for this?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Mar 2017 15:05:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Comparing-floats-in-QlikSense-expressions-not-working/m-p/1232472#M24109</guid>
      <dc:creator />
      <dc:date>2017-03-17T15:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing floats in QlikSense expressions not working</title>
      <link>https://community.qlik.com/t5/App-Development/Comparing-floats-in-QlikSense-expressions-not-working/m-p/1232473#M24110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Qlik used IEEE 754 as number-system which allowed no big numbers only 14 digits (in some cases 15) and is has also some limitations by interpreting numbers, see: &lt;A href="https://community.qlik.com/qlik-blogpost/3471"&gt;Rounding Errors&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Mar 2017 18:16:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Comparing-floats-in-QlikSense-expressions-not-working/m-p/1232473#M24110</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-03-19T18:16:13Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing floats in QlikSense expressions not working</title>
      <link>https://community.qlik.com/t5/App-Development/Comparing-floats-in-QlikSense-expressions-not-working/m-p/1232474#M24111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Qlik does not support any data type that is Numeric(18,2) all numbers are either integer or float. Doing inequality comparisons like you do should pose no problem. As far as I can tell it seems like your problem is elsewhere - not the comparison itself if A is a single floating value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where do you do the comparisons? Is it in a calculated dimension, in a chart? Context is everything and if A is a field where it could possibly return multiple values it might very well fail any type of comparison.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please provide more context about where you experience your problem? Is A a field or a variable?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Mar 2017 22:37:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Comparing-floats-in-QlikSense-expressions-not-working/m-p/1232474#M24111</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2017-03-19T22:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing floats in QlikSense expressions not working</title>
      <link>https://community.qlik.com/t5/App-Development/Comparing-floats-in-QlikSense-expressions-not-working/m-p/1232475#M24112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using this comparison in the Color and Presentation tab of a bar chart in an attempt to &lt;EM&gt;Color by Expression.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The actual example ends up being closer to this:&lt;/P&gt;&lt;P&gt;COUNT(A) is a set analysis expression&lt;/P&gt;&lt;P&gt;COUNT(B) is a set analysis expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If (&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;COUNT(A)/COUNT(B)&lt;STRONG&gt;)&lt;/STRONG&gt; &amp;gt; Avg(Aggr&lt;STRONG&gt;(&lt;/STRONG&gt;COUNT(A)/COUNT(B),&lt;EM&gt;DIMENSION&lt;/EM&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;),&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;rgb(250,50,50),&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;rgb(50,250,50)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The IF statement always evaluates as False. Even if I change the &lt;STRONG&gt;greater than&lt;/STRONG&gt; sign to a &lt;STRONG&gt;less than&lt;/STRONG&gt; sign.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Mar 2017 13:57:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Comparing-floats-in-QlikSense-expressions-not-working/m-p/1232475#M24112</guid>
      <dc:creator />
      <dc:date>2017-03-21T13:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing floats in QlikSense expressions not working</title>
      <link>https://community.qlik.com/t5/App-Development/Comparing-floats-in-QlikSense-expressions-not-working/m-p/1232476#M24113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I assume your fields A and B won't be interpreted as numeric else as strings. To check this put these fields within a listbox - a left alignment of the values indicates that they are strings and to be sure you could add an expression with something like: =isnum(A).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If they are strings you need to convert them with something like: num(num#(A, 'FormatString')) and if the lengths are greater 14 chars an additional cut like: left(A, 14).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Mar 2017 14:48:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Comparing-floats-in-QlikSense-expressions-not-working/m-p/1232476#M24113</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-03-21T14:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing floats in QlikSense expressions not working</title>
      <link>https://community.qlik.com/t5/App-Development/Comparing-floats-in-QlikSense-expressions-not-working/m-p/1232477#M24114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may need to add your / a set expression also to the outer aggregation function of the advanced aggregation:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4669"&gt;Set Analysis in the Aggr function&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It could be that there are no aggr&amp;nbsp; dimension values possible in the default set.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Mar 2017 14:52:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Comparing-floats-in-QlikSense-expressions-not-working/m-p/1232477#M24114</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-03-21T14:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing floats in QlikSense expressions not working</title>
      <link>https://community.qlik.com/t5/App-Development/Comparing-floats-in-QlikSense-expressions-not-working/m-p/1232478#M24115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And if Dimension is your chart dimension, both sides of your comparison will be equal, I assume you want the total average:&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;If (&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; 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;(&lt;/STRONG&gt;&lt;/SPAN&gt;COUNT(A)/COUNT(B)&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt; &amp;gt; Avg(&lt;STRONG&gt;TOTAL&lt;/STRONG&gt; Aggr&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;COUNT(A)/COUNT(B),&lt;SPAN style="font-weight: inherit; font-family: inherit;"&gt;&lt;EM&gt;DIMENSION&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;),&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;rgb(250,50,50),&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;rgb(50,250,50)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3285"&gt;The Aggregation Scope&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Mar 2017 14:57:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Comparing-floats-in-QlikSense-expressions-not-working/m-p/1232478#M24115</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-03-21T14:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing floats in QlikSense expressions not working</title>
      <link>https://community.qlik.com/t5/App-Development/Comparing-floats-in-QlikSense-expressions-not-working/m-p/1232479#M24116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This was it! Can't believe I missed that. Thanks Stefan and all others that answered!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Mar 2017 17:02:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Comparing-floats-in-QlikSense-expressions-not-working/m-p/1232479#M24116</guid>
      <dc:creator />
      <dc:date>2017-03-21T17:02:53Z</dc:date>
    </item>
  </channel>
</rss>

