<?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: Rounding using Floor/Ceil is there an alternative? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rounding-using-Floor-Ceil-is-there-an-alternative/m-p/1365600#M417991</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please try once doing total as expression total, it should work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Jul 2017 11:32:00 GMT</pubDate>
    <dc:creator>mangalsk</dc:creator>
    <dc:date>2017-07-25T11:32:00Z</dc:date>
    <item>
      <title>Rounding using Floor/Ceil is there an alternative?</title>
      <link>https://community.qlik.com/t5/QlikView/Rounding-using-Floor-Ceil-is-there-an-alternative/m-p/1365595#M417986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;In an expression I am rounding to the nearest million by&amp;nbsp;&amp;nbsp; /100000&lt;/P&gt;&lt;P&gt;Each individual row then appears correct to the nearest million but the total does not necessarily agree to the sum of the rounded individual lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the function floor, which works in the sense that the individual lines then always agree to the total but the logic of floor is wrong, ie £69,990,177 is rounded to £69m rather than £70m.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anyway to have the individual lines rounded correctly ie to the nearest million but then also have the total agree to the individual lines?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2017 10:27:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rounding-using-Floor-Ceil-is-there-an-alternative/m-p/1365595#M417986</guid>
      <dc:creator>paul_ripley</dc:creator>
      <dc:date>2017-07-25T10:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding using Floor/Ceil is there an alternative?</title>
      <link>https://community.qlik.com/t5/QlikView/Rounding-using-Floor-Ceil-is-there-an-alternative/m-p/1365596#M417987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paul,&lt;/P&gt;&lt;P&gt;Your best bet is only to round individual lines. If you're working with a straight table then in the &lt;EM&gt;Expressions&lt;/EM&gt; tab set the Total Mode to Sum of Rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2017 10:31:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rounding-using-Floor-Ceil-is-there-an-alternative/m-p/1365596#M417987</guid>
      <dc:creator>effinty2112</dc:creator>
      <dc:date>2017-07-25T10:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding using Floor/Ceil is there an alternative?</title>
      <link>https://community.qlik.com/t5/QlikView/Rounding-using-Floor-Ceil-is-there-an-alternative/m-p/1365597#M417988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For total are you checking 'Sum of rows' then it will directly sum, else you can use 'expression total' it will calculte correctly&lt;IMG alt="2017-07-25_160437.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/171271_2017-07-25_160437.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2017 10:35:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rounding-using-Floor-Ceil-is-there-an-alternative/m-p/1365597#M417988</guid>
      <dc:creator>mangalsk</dc:creator>
      <dc:date>2017-07-25T10:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding using Floor/Ceil is there an alternative?</title>
      <link>https://community.qlik.com/t5/QlikView/Rounding-using-Floor-Ceil-is-there-an-alternative/m-p/1365598#M417989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That didn't seem to work&lt;/P&gt;&lt;P&gt;You can see that the individual lines sum to 111, but the total says 112.&amp;nbsp; I would need it really to show 111&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/171282_pastedImage_2.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;( {&lt;BR /&gt; &amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;entity&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; -= {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"0148"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;},&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;pl&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; -={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"X01*"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;proceeds&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"Proceeds"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;period&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;gt;=$(vStartPeriod_CY)&amp;lt;=$(vEndPeriod_CY)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&lt;BR /&gt; &amp;gt; }&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[GPR GBP]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)*-1/1000000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;IMG class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/171283_pastedImage_3.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2017 10:57:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rounding-using-Floor-Ceil-is-there-an-alternative/m-p/1365598#M417989</guid>
      <dc:creator>paul_ripley</dc:creator>
      <dc:date>2017-07-25T10:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding using Floor/Ceil is there an alternative?</title>
      <link>https://community.qlik.com/t5/QlikView/Rounding-using-Floor-Ceil-is-there-an-alternative/m-p/1365599#M417990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used the following to round to the nearest ten (First line) I think what you would need is the second version&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Floor(MyValue + 5, 10)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Floor(MyValue + 500000, 1000000)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Adrian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2017 11:04:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rounding-using-Floor-Ceil-is-there-an-alternative/m-p/1365599#M417990</guid>
      <dc:creator>atoz1158</dc:creator>
      <dc:date>2017-07-25T11:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding using Floor/Ceil is there an alternative?</title>
      <link>https://community.qlik.com/t5/QlikView/Rounding-using-Floor-Ceil-is-there-an-alternative/m-p/1365600#M417991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please try once doing total as expression total, it should work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2017 11:32:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rounding-using-Floor-Ceil-is-there-an-alternative/m-p/1365600#M417991</guid>
      <dc:creator>mangalsk</dc:creator>
      <dc:date>2017-07-25T11:32:00Z</dc:date>
    </item>
  </channel>
</rss>

