<?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 issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rounding-issue/m-p/282403#M104983</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; I have just changed my expression from :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;Store_fiscal=(P({&amp;lt;status_comp={Current}&amp;gt;})),status_comp={Current},&lt;/P&gt;&lt;P&gt;status={Current}&amp;gt;} if(Store_fiscal='0099' or&amp;nbsp; noncomp_fiscal='0099' , '0', &lt;/P&gt;&lt;P&gt;if(Coupon_Flag='Y' and (ACCT='MHOODC' or ACCT='QOP.C' or ACCT='MHOOD.') ,&lt;/P&gt;&lt;P&gt;aggr(sum(Sold_At*Qty*conv_rate),Order_Key)-Coupon_Dollars,&lt;/P&gt;&lt;P&gt; if(Coupon_Flag='Y' and (&amp;nbsp; ACCT&amp;lt;&amp;gt;'QOP.C' or ACCT&amp;lt;&amp;gt;'MHOODC' or ACCT&amp;lt;&amp;gt;'MHOOD.' ) ,&lt;/P&gt;&lt;P&gt; aggr(sum(Sold_At*Qty),Order_Key)-Coupon_Dollars,&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(Coupon_Flag&amp;lt;&amp;gt;'Y' and (&amp;nbsp;&amp;nbsp; ACCT='QOP.C' or ACCT='MHOODC' or ACCT='MHOOD.'),&lt;/P&gt;&lt;P&gt;(Sold_At*Qty*conv_rate),&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;(Sold_At*Qty))))))&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;round(Sum({$&amp;lt;Store_fiscal=(P({&amp;lt;status_comp={Current}&amp;gt;})),status_comp={Current},&lt;/P&gt;&lt;P&gt;status={Current}&amp;gt;} if(Store_fiscal='0099' or&amp;nbsp; noncomp_fiscal='0099' , '0', &lt;/P&gt;&lt;P&gt;if(Coupon_Flag='Y' and (ACCT='MHOODC' or ACCT='QOP.C' or ACCT='MHOOD.') ,&lt;/P&gt;&lt;P&gt;aggr(sum(Sold_At*Qty*conv_rate),Order_Key)-Coupon_Dollars,&lt;/P&gt;&lt;P&gt; if(Coupon_Flag='Y' and (&amp;nbsp; ACCT&amp;lt;&amp;gt;'QOP.C' or ACCT&amp;lt;&amp;gt;'MHOODC' or ACCT&amp;lt;&amp;gt;'MHOOD.' ) ,&lt;/P&gt;&lt;P&gt; aggr(sum(Sold_At*Qty),Order_Key)-Coupon_Dollars,&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(Coupon_Flag&amp;lt;&amp;gt;'Y' and (&amp;nbsp;&amp;nbsp; ACCT='QOP.C' or ACCT='MHOODC' or ACCT='MHOOD.'),&lt;/P&gt;&lt;P&gt;(Sold_At*Qty*conv_rate),&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;(Sold_At*Qty)))))),1),still I get the totals rounded but by just each date nat the subtotal level.pls help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Oct 2011 18:26:46 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-10-28T18:26:46Z</dc:date>
    <item>
      <title>Rounding issue</title>
      <link>https://community.qlik.com/t5/QlikView/Rounding-issue/m-p/282398#M104978</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 have a expression which have overide the settings as Integer on Number tab.So it rounds off to the nearest integer for each as shown(Pls see the attached doc).But &lt;/P&gt;&lt;P&gt;does not round off the sum.Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Swetha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2011 16:07:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rounding-issue/m-p/282398#M104978</guid>
      <dc:creator />
      <dc:date>2011-10-28T16:07:11Z</dc:date>
    </item>
    <item>
      <title>Rounding issue</title>
      <link>https://community.qlik.com/t5/QlikView/Rounding-issue/m-p/282399#M104979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swetha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am sorry, I don't get your point with round off the sum, could you clarify what you do expect to see at what specific positions in your attached sample?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2011 16:29:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rounding-issue/m-p/282399#M104979</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-10-28T16:29:36Z</dc:date>
    </item>
    <item>
      <title>Rounding issue</title>
      <link>https://community.qlik.com/t5/QlikView/Rounding-issue/m-p/282400#M104980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my attached exampleif you see the word doc the the expression SALES is rounded to nearset integer but at the summary level-21,768 its summing the expression before rounding off.If you total from spreadsheet it should be 21772 instead its showing 21678.Please let me know incase of further clarification.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Swetha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2011 16:34:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rounding-issue/m-p/282400#M104980</guid>
      <dc:creator />
      <dc:date>2011-10-28T16:34:51Z</dc:date>
    </item>
    <item>
      <title>Rounding issue</title>
      <link>https://community.qlik.com/t5/QlikView/Rounding-issue/m-p/282401#M104981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I begin to understand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You probably need to round the value in your expression instead of just setting the display format, so the sum will take the rounded values and not the raw data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So try something like&lt;/P&gt;&lt;P&gt;=round( YOUREXPRESSION, 1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as expression and this could just do the job.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2011 16:58:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rounding-issue/m-p/282401#M104981</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-10-28T16:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding issue</title>
      <link>https://community.qlik.com/t5/QlikView/Rounding-issue/m-p/282402#M104982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciated your help.Could resolve maximum of it except the below.Please let me know how to get this done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have changed my expression&amp;nbsp; as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=round(Sum({$&amp;lt;Store_fiscal=(P({&amp;lt;status_comp={Current}&amp;gt;})),status_comp={Current},&lt;/P&gt;&lt;P&gt;status={Current}&amp;gt;} if(Store_fiscal='0099' or&amp;nbsp; noncomp_fiscal='0099' , '0', &lt;/P&gt;&lt;P&gt;if(Coupon_Flag='Y' and (ACCT='MHOODC' or ACCT='QOP.C' or ACCT='MHOOD.') ,&lt;/P&gt;&lt;P&gt;aggr(round(sum(Sold_At*Qty*conv_rate),1),Order_Key)-Coupon_Dollars,&lt;/P&gt;&lt;P&gt;if(Coupon_Flag='Y' and (&amp;nbsp; ACCT&amp;lt;&amp;gt;'QOP.C' or ACCT&amp;lt;&amp;gt;'MHOODC' or ACCT&amp;lt;&amp;gt;'MHOOD.' ) ,&lt;/P&gt;&lt;P&gt;aggr(round(sum(Sold_At*Qty),1),Order_Key)-Coupon_Dollars,&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(Coupon_Flag&amp;lt;&amp;gt;'Y' and (&amp;nbsp;&amp;nbsp; ACCT='QOP.C' or ACCT='MHOODC' or ACCT='MHOOD.'),&lt;/P&gt;&lt;P&gt;(Sold_At*Qty*conv_rate),(Sold_At*Qty)&lt;/P&gt;&lt;P&gt;))))),1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;Store_fiscal=(P({&amp;lt;status_comp={Current}&amp;gt;})),status_comp={Current},&lt;/P&gt;&lt;P&gt;status={Current}&amp;gt;} if(Store_fiscal='0099' or&amp;nbsp; noncomp_fiscal='0099' , '0', &lt;/P&gt;&lt;P&gt;if(Coupon_Flag='Y' and (ACCT='MHOODC' or ACCT='QOP.C' or ACCT='MHOOD.') ,&lt;/P&gt;&lt;P&gt;aggr(sum(Sold_At*Qty*conv_rate),Order_Key)-Coupon_Dollars,&lt;/P&gt;&lt;P&gt;if(Coupon_Flag='Y' and (&amp;nbsp; ACCT&amp;lt;&amp;gt;'QOP.C' or ACCT&amp;lt;&amp;gt;'MHOODC' or ACCT&amp;lt;&amp;gt;'MHOOD.' ) ,&lt;/P&gt;&lt;P&gt;aggr(sum(Sold_At*Qty),Order_Key)-Coupon_Dollars,&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(Coupon_Flag&amp;lt;&amp;gt;'Y' and (&amp;nbsp;&amp;nbsp; ACCT='QOP.C' or ACCT='MHOODC' or ACCT='MHOOD.'),&lt;/P&gt;&lt;P&gt;(Sold_At*Qty*conv_rate),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Sold_At*Qty)))))).But the sum is not rounded.The result is as attached :date wise its rounding but at the summary level its not.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;Swetha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2011 18:02:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rounding-issue/m-p/282402#M104982</guid>
      <dc:creator />
      <dc:date>2011-10-28T18:02:47Z</dc:date>
    </item>
    <item>
      <title>Rounding issue</title>
      <link>https://community.qlik.com/t5/QlikView/Rounding-issue/m-p/282403#M104983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; I have just changed my expression from :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;Store_fiscal=(P({&amp;lt;status_comp={Current}&amp;gt;})),status_comp={Current},&lt;/P&gt;&lt;P&gt;status={Current}&amp;gt;} if(Store_fiscal='0099' or&amp;nbsp; noncomp_fiscal='0099' , '0', &lt;/P&gt;&lt;P&gt;if(Coupon_Flag='Y' and (ACCT='MHOODC' or ACCT='QOP.C' or ACCT='MHOOD.') ,&lt;/P&gt;&lt;P&gt;aggr(sum(Sold_At*Qty*conv_rate),Order_Key)-Coupon_Dollars,&lt;/P&gt;&lt;P&gt; if(Coupon_Flag='Y' and (&amp;nbsp; ACCT&amp;lt;&amp;gt;'QOP.C' or ACCT&amp;lt;&amp;gt;'MHOODC' or ACCT&amp;lt;&amp;gt;'MHOOD.' ) ,&lt;/P&gt;&lt;P&gt; aggr(sum(Sold_At*Qty),Order_Key)-Coupon_Dollars,&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(Coupon_Flag&amp;lt;&amp;gt;'Y' and (&amp;nbsp;&amp;nbsp; ACCT='QOP.C' or ACCT='MHOODC' or ACCT='MHOOD.'),&lt;/P&gt;&lt;P&gt;(Sold_At*Qty*conv_rate),&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;(Sold_At*Qty))))))&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;round(Sum({$&amp;lt;Store_fiscal=(P({&amp;lt;status_comp={Current}&amp;gt;})),status_comp={Current},&lt;/P&gt;&lt;P&gt;status={Current}&amp;gt;} if(Store_fiscal='0099' or&amp;nbsp; noncomp_fiscal='0099' , '0', &lt;/P&gt;&lt;P&gt;if(Coupon_Flag='Y' and (ACCT='MHOODC' or ACCT='QOP.C' or ACCT='MHOOD.') ,&lt;/P&gt;&lt;P&gt;aggr(sum(Sold_At*Qty*conv_rate),Order_Key)-Coupon_Dollars,&lt;/P&gt;&lt;P&gt; if(Coupon_Flag='Y' and (&amp;nbsp; ACCT&amp;lt;&amp;gt;'QOP.C' or ACCT&amp;lt;&amp;gt;'MHOODC' or ACCT&amp;lt;&amp;gt;'MHOOD.' ) ,&lt;/P&gt;&lt;P&gt; aggr(sum(Sold_At*Qty),Order_Key)-Coupon_Dollars,&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(Coupon_Flag&amp;lt;&amp;gt;'Y' and (&amp;nbsp;&amp;nbsp; ACCT='QOP.C' or ACCT='MHOODC' or ACCT='MHOOD.'),&lt;/P&gt;&lt;P&gt;(Sold_At*Qty*conv_rate),&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;(Sold_At*Qty)))))),1),still I get the totals rounded but by just each date nat the subtotal level.pls help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2011 18:26:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rounding-issue/m-p/282403#M104983</guid>
      <dc:creator />
      <dc:date>2011-10-28T18:26:46Z</dc:date>
    </item>
    <item>
      <title>Rounding issue</title>
      <link>https://community.qlik.com/t5/QlikView/Rounding-issue/m-p/282404#M104984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, the expression is evaluated as total expression at summary level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You would either need "sum of rows" total mode (this is available only in straight chart, on expression tab of chart properties), or the equivalent using advanced aggregation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= sum(aggr( round( YOUREXPRESSION, 1), Date, Region))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I noticed that you used cyclic gorups for your dimension, this makes it probably a bit more complicated, but first check if you get the expected results with either sum of rows total mode or the advanced aggregation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Besides, are you really sure that you want to aggregate the rounded Sales to total Sales like that? If you do it like a sum of rows with rounded values in each rows, your total Sales will almost surely be off the correct financial Sales sum, unless the rounding of the rows sum is part of your real business.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Oct 2011 12:09:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rounding-issue/m-p/282404#M104984</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-10-30T12:09:03Z</dc:date>
    </item>
  </channel>
</rss>

