<?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 Rounding problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rounding-problem/m-p/1385214#M421825</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;I am stuck with rounding off. Basically i am trying to get the sum and then take the rounding value but wherever there is 5 after decimal it does not round whereas for rest of the values it rounds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find attached sample data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Nov 2017 07:56:22 GMT</pubDate>
    <dc:creator>saimahasan</dc:creator>
    <dc:date>2017-11-28T07:56:22Z</dc:date>
    <item>
      <title>Rounding problem</title>
      <link>https://community.qlik.com/t5/QlikView/Rounding-problem/m-p/1385214#M421825</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;I am stuck with rounding off. Basically i am trying to get the sum and then take the rounding value but wherever there is 5 after decimal it does not round whereas for rest of the values it rounds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find attached sample data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2017 07:56:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rounding-problem/m-p/1385214#M421825</guid>
      <dc:creator>saimahasan</dc:creator>
      <dc:date>2017-11-28T07:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding problem</title>
      <link>https://community.qlik.com/t5/QlikView/Rounding-problem/m-p/1385215#M421826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do not see the problem, rounding works ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ROUND(SUM(AMMORTISED_COST), 1)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rounds the .5 up to the next full digit&lt;/P&gt;&lt;P&gt;FLOOR(SUM(AMMORTISED_COST), 1)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; would round all decimals down the the full digit ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2017 08:07:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rounding-problem/m-p/1385215#M421826</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2017-11-28T08:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding problem</title>
      <link>https://community.qlik.com/t5/QlikView/Rounding-problem/m-p/1385216#M421827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If i take =Round(Sum(MARKET_VALUE) - Sum(AMMORTISED_COST)) it doesnt work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2017 08:09:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rounding-problem/m-p/1385216#M421827</guid>
      <dc:creator>saimahasan</dc:creator>
      <dc:date>2017-11-28T08:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding problem</title>
      <link>https://community.qlik.com/t5/QlikView/Rounding-problem/m-p/1385217#M421828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please look at this attachment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2017 08:14:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rounding-problem/m-p/1385217#M421828</guid>
      <dc:creator>saimahasan</dc:creator>
      <dc:date>2017-11-28T08:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding problem</title>
      <link>https://community.qlik.com/t5/QlikView/Rounding-problem/m-p/1385218#M421829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please use&lt;/P&gt;&lt;P&gt;Round(Sum(MARKET_VALUE) - Sum(AMMORTISED_COST)&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;, 1&lt;/STRONG&gt;&lt;/SPAN&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2017 08:27:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rounding-problem/m-p/1385218#M421829</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2017-11-28T08:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding problem</title>
      <link>https://community.qlik.com/t5/QlikView/Rounding-problem/m-p/1385219#M421830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not working&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2017 08:59:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rounding-problem/m-p/1385219#M421830</guid>
      <dc:creator>saimahasan</dc:creator>
      <dc:date>2017-11-28T08:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding problem</title>
      <link>https://community.qlik.com/t5/QlikView/Rounding-problem/m-p/1385220#M421831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;pfa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2017 09:09:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rounding-problem/m-p/1385220#M421831</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2017-11-28T09:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding problem</title>
      <link>https://community.qlik.com/t5/QlikView/Rounding-problem/m-p/1385221#M421832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. Now i just want to clear my doubt. Is it that QV doesn't round off the number with decimal .5 to the nearest upper integer??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2017 09:29:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rounding-problem/m-p/1385221#M421832</guid>
      <dc:creator>saimahasan</dc:creator>
      <dc:date>2017-11-28T09:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding problem</title>
      <link>https://community.qlik.com/t5/QlikView/Rounding-problem/m-p/1385222#M421833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I cannot reproduce your behavior, as per help the default is set to "1":&lt;/P&gt;&lt;P class="syntax" data-mc-conditions="Targets.NotToTranslate"&gt;&lt;SPAN class="script_token"&gt;Round(&lt;/SPAN&gt;&lt;SPAN class="bnf_token"&gt;x[, step[, offset]]&lt;/SPAN&gt;&lt;SPAN class="script_token"&gt;)&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P class="return_type" data-mc-autonum="Return data type: "&gt;&lt;SPAN class="autonumber"&gt;Return data type: &lt;/SPAN&gt; numeric&lt;/P&gt;&lt;P class="note"&gt;&lt;/P&gt;&lt;P class="arguments" data-mc-autonum="Arguments: "&gt;&lt;SPAN class="autonumber"&gt;Arguments: &lt;/SPAN&gt; &lt;/P&gt;&lt;TABLE cellspacing="0" class="TableStyle-tableGrid" style="margin-right: auto;"&gt;&lt;THEAD&gt;&lt;TR class="Head-Header1"&gt;&lt;TH class="HeadI--"&gt;Argument&lt;/TH&gt;&lt;TH class="HeadG--"&gt;Description&lt;/TH&gt;&lt;/TR&gt;&lt;/THEAD&gt;&lt;TBODY&gt;&lt;TR class="Body-Body1"&gt;&lt;TD class="BodyI--"&gt;&lt;SPAN class="statement" data-mc-conditions="Targets.NotToTranslate"&gt;x&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD class="BodyG--"&gt;Input number.&lt;/TD&gt;&lt;/TR&gt;&lt;TR class="Body-Body1"&gt;&lt;TD class="BodyI--"&gt;&lt;SPAN class="statement" data-mc-conditions="Targets.NotToTranslate"&gt;step&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD class="BodyG--"&gt;Interval increment. The default value is 1.&lt;/TD&gt;&lt;/TR&gt;&lt;TR class="Body-Body1"&gt;&lt;TD class="BodyC--"&gt;&lt;SPAN class="statement" data-mc-conditions="Targets.NotToTranslate"&gt;offset&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD class="BodyA--"&gt;&lt;P&gt;Defines the base of the step interval. The default value is 0.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Even, if using ROUND without parameter, I get the result as desired.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Else please post an example of your qvw.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2017 09:37:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rounding-problem/m-p/1385222#M421833</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2017-11-28T09:37:08Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding problem</title>
      <link>https://community.qlik.com/t5/QlikView/Rounding-problem/m-p/1385223#M421834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, in your QVW the output which is getting generated is matching with mine. But can i get the output as -22531192 and not as -22531191 since the base number is -22531191.5&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2017 09:45:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rounding-problem/m-p/1385223#M421834</guid>
      <dc:creator>saimahasan</dc:creator>
      <dc:date>2017-11-28T09:45:57Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding problem</title>
      <link>https://community.qlik.com/t5/QlikView/Rounding-problem/m-p/1385224#M421835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Read this &lt;A href="https://community.qlik.com/thread/241625"&gt;where we use floor() and ceil() in qlikview?&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2017 09:49:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rounding-problem/m-p/1385224#M421835</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-11-28T09:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding problem</title>
      <link>https://community.qlik.com/t5/QlikView/Rounding-problem/m-p/1385225#M421836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look at&lt;/P&gt;&lt;P&gt;&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;You could load your values in as cents, like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Round(MARKET_VALUE*100) as MARKET_VALUE_CENT,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;FROM ...;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then do you sums, and only show the aggregated value divided by 100 to show your value in Dollar (or whatever your currency is)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Round(Sum(MARKET_VALUE_CENT) /100, 0.01)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2017 10:03:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rounding-problem/m-p/1385225#M421836</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-11-28T10:03:33Z</dc:date>
    </item>
  </channel>
</rss>

