<?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 Calculation result not as expected in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculation-result-not-as-expected/m-p/222409#M500463</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Here's why (from your sample):&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/6811.temp.png"&gt;&lt;/A&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/3603.temp.png"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/3603.temp.png" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Your script created a dual value that had a text representation in minutes that totalled 1925 when added, and a numeric value of day fraction. ie for ID 110, 180 minutes = 0.125 of 24 hours. 0.16319444 = 1.336806 / 6 which is correct.&lt;/P&gt;&lt;P&gt;IMO the total of 1925 is a bug as you should not be able to total the text representation, as shown by the inability to total the expression Text(frame1).&lt;/P&gt;&lt;P&gt;Column 4 shows how you can get numeric minutes from the value.&lt;/P&gt;&lt;P&gt;Hope that clears it up.&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 19 Feb 2011 14:53:59 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2011-02-19T14:53:59Z</dc:date>
    <item>
      <title>Calculation result not as expected</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-result-not-as-expected/m-p/222404#M500458</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;This is my first post, so be easy on me. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have a strange probleem that I think should be solved quite easily.&lt;/P&gt;&lt;P&gt;I have the following data as an example:&lt;/P&gt;&lt;P&gt;ID length&lt;/P&gt;&lt;P&gt;1 180&lt;/P&gt;&lt;P&gt;2 345&lt;/P&gt;&lt;P&gt;3 180&lt;/P&gt;&lt;P&gt;I tried the following expression in a textbox:&lt;/P&gt;&lt;P&gt;1. sum(length) = 705 &amp;lt;= correct and as expected&lt;/P&gt;&lt;P&gt;2. count(length) = 3 &amp;lt;= correct and as expected&lt;/P&gt;&lt;P&gt;3. avg(length) = 0.16319444 &amp;lt;= incorrect, expected 705/3 = 235&lt;/P&gt;&lt;P&gt;4. sum(length)/count(length) = 0.16319444 &amp;lt;= incorrect, expected 705/3 = 235&lt;/P&gt;&lt;P&gt;What should I do to get the correct value '235' ? I dont quite understand why it calculates 0.16319444 instead of 235.&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Feb 2011 23:46:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-result-not-as-expected/m-p/222404#M500458</guid>
      <dc:creator />
      <dc:date>2011-02-18T23:46:07Z</dc:date>
    </item>
    <item>
      <title>Calculation result not as expected</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-result-not-as-expected/m-p/222405#M500459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I think there is something wrong when you load your date, because I create your scenario and both expresions: avg(length) and sum(length)/count(length) gives me 235 for result&lt;/P&gt;&lt;P&gt;Can you upload your file?&lt;/P&gt;&lt;P&gt;I attached mine.&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Feb 2011 23:59:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-result-not-as-expected/m-p/222405#M500459</guid>
      <dc:creator />
      <dc:date>2011-02-18T23:59:29Z</dc:date>
    </item>
    <item>
      <title>Calculation result not as expected</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-result-not-as-expected/m-p/222406#M500460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gabriela,&lt;/P&gt;&lt;P&gt;I attached my file.&lt;/P&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;Kind Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Feb 2011 00:20:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-result-not-as-expected/m-p/222406#M500460</guid>
      <dc:creator />
      <dc:date>2011-02-19T00:20:29Z</dc:date>
    </item>
    <item>
      <title>Calculation result not as expected</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-result-not-as-expected/m-p/222407#M500461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;here is a solution:&lt;/P&gt;&lt;P&gt;avg(num#(frame1,'#'))&lt;/P&gt;&lt;P&gt;it seams like frame1 is not formated as a number&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Feb 2011 00:54:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-result-not-as-expected/m-p/222407#M500461</guid>
      <dc:creator />
      <dc:date>2011-02-19T00:54:03Z</dc:date>
    </item>
    <item>
      <title>Calculation result not as expected</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-result-not-as-expected/m-p/222408#M500462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Gabriela. Your solution works like a charm!&lt;/P&gt;&lt;P&gt;Could you explain a bit for me? I would like to understand a little bit more. Frame1/2/3 is an interval and not a number, so what kind of value is 0.16319444?&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Feb 2011 01:15:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-result-not-as-expected/m-p/222408#M500462</guid>
      <dc:creator />
      <dc:date>2011-02-19T01:15:39Z</dc:date>
    </item>
    <item>
      <title>Calculation result not as expected</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-result-not-as-expected/m-p/222409#M500463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Here's why (from your sample):&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/6811.temp.png"&gt;&lt;/A&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/3603.temp.png"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/3603.temp.png" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Your script created a dual value that had a text representation in minutes that totalled 1925 when added, and a numeric value of day fraction. ie for ID 110, 180 minutes = 0.125 of 24 hours. 0.16319444 = 1.336806 / 6 which is correct.&lt;/P&gt;&lt;P&gt;IMO the total of 1925 is a bug as you should not be able to total the text representation, as shown by the inability to total the expression Text(frame1).&lt;/P&gt;&lt;P&gt;Column 4 shows how you can get numeric minutes from the value.&lt;/P&gt;&lt;P&gt;Hope that clears it up.&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Feb 2011 14:53:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-result-not-as-expected/m-p/222409#M500463</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2011-02-19T14:53:59Z</dc:date>
    </item>
    <item>
      <title>Calculation result not as expected</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-result-not-as-expected/m-p/222410#M500464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok that clears up thing! Thank you for your explanation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Feb 2011 13:45:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-result-not-as-expected/m-p/222410#M500464</guid>
      <dc:creator />
      <dc:date>2011-02-20T13:45:37Z</dc:date>
    </item>
  </channel>
</rss>

