<?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: Calculated Dimension - STRANGE BEHAVIOUR in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-STRANGE-BEHAVIOUR/m-p/824871#M1045029</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Frank&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to know what's wrong in comparing two numbers here..??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Nov 2014 14:10:33 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-11-26T14:10:33Z</dc:date>
    <item>
      <title>Calculated Dimension - STRANGE BEHAVIOUR</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-STRANGE-BEHAVIOUR/m-p/824867#M1045025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm noticing a very strange behaviour while defining a calculated dimension in a line chart. Please see the following screenshots and let me know if you have any idea of this strange behaviour.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm writing this in calculated dimension (numDate)&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture1.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/72188_Capture1.PNG.png" style="width: 620px; height: 320px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the output display is seen as :&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture2.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/72189_Capture2.PNG.png" style="width: 620px; height: 122px;" /&gt;&lt;/P&gt;&lt;P&gt;Here it can be seen that less than 40721.33055 is being shown. How is this possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the one more similar sample but the output display is absolutely correct in that case.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture4.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/72191_Capture4.PNG.png" style="width: 620px; height: 326px;" /&gt;&lt;/P&gt;&lt;P&gt;Correct output can be seen as follows:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture3.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/72190_Capture3.PNG.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone explain this behaviour?? Unfortunately I can't share my qlikview files and data due to privacy issues.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2014 13:51:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-STRANGE-BEHAVIOUR/m-p/824867#M1045025</guid>
      <dc:creator />
      <dc:date>2014-11-26T13:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Dimension - STRANGE BEHAVIOUR</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-STRANGE-BEHAVIOUR/m-p/824868#M1045026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your value is being read as a number, you'll need to set it to the date number format.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2014 14:00:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-STRANGE-BEHAVIOUR/m-p/824868#M1045026</guid>
      <dc:creator>quwok</dc:creator>
      <dc:date>2014-11-26T14:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Dimension - STRANGE BEHAVIOUR</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-STRANGE-BEHAVIOUR/m-p/824869#M1045027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this in script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date(Date#(numDate)) AS numDate&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2014 14:07:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-STRANGE-BEHAVIOUR/m-p/824869#M1045027</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2014-11-26T14:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Dimension - STRANGE BEHAVIOUR</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-STRANGE-BEHAVIOUR/m-p/824870#M1045028</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;Thanks for the reply. But if the values are being read as a number, still the comparison operator should work fine. In fact I intentionally converted my dates to Num(Dates) so that numbers are compared instead of dates&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2014 14:07:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-STRANGE-BEHAVIOUR/m-p/824870#M1045028</guid>
      <dc:creator />
      <dc:date>2014-11-26T14:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Dimension - STRANGE BEHAVIOUR</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-STRANGE-BEHAVIOUR/m-p/824871#M1045029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Frank&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to know what's wrong in comparing two numbers here..??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2014 14:10:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-STRANGE-BEHAVIOUR/m-p/824871#M1045029</guid>
      <dc:creator />
      <dc:date>2014-11-26T14:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Dimension - STRANGE BEHAVIOUR</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-STRANGE-BEHAVIOUR/m-p/824872#M1045030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, the year made me think you are looking after the date. Having looked at your issue a bit closer, it seems that your decimal comma is causing an issue with the comma of the if statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your expression:&lt;/P&gt;&lt;P&gt;=if(numDate&amp;gt;=40721,330555556,numDate)&lt;/P&gt;&lt;P&gt;is read as&lt;/P&gt;&lt;P&gt;if numDate&amp;gt;=40721 then 330555556 else numDate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hence every number that is smaller than 40721 is shown.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2014 15:11:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-STRANGE-BEHAVIOUR/m-p/824872#M1045030</guid>
      <dc:creator>quwok</dc:creator>
      <dc:date>2014-11-26T15:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Dimension - STRANGE BEHAVIOUR</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-STRANGE-BEHAVIOUR/m-p/824873#M1045031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I thinik that's the actual reason. &lt;/P&gt;&lt;P&gt;I resolved it by converting number to Date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks...!!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2014 15:17:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-STRANGE-BEHAVIOUR/m-p/824873#M1045031</guid>
      <dc:creator />
      <dc:date>2014-11-26T15:17:58Z</dc:date>
    </item>
  </channel>
</rss>

