<?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 Ceiling / Floor problems in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Ceiling-Floor-problems/m-p/1563539#M441488</link>
    <description>&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;Hoping someone can help. I cannot add the QV file due to data protection, but i have exported the issues to excel and attached. See references for details.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to work out how many pallets we have in stock - to do this I am dividing total stock by 880. I need to round UP to the nearest pallet. Using a ceiling in the expression (pivot table) didn't work so I have added it into my LOAD script.&lt;/P&gt;&lt;P&gt;quantity,&lt;BR /&gt;ceil((quantity/880),1.0) AS ceilquantity&lt;/P&gt;&lt;P&gt;This gave me excel file v3 attached. Column F is what the ceiling is giving me. Column I is what it SHOULD be giving me. If I use row 7 as an example, 63880/880 = 72.59 so why is it rounding to 74, rather than 73?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found another post on here that used a floor instead so I changed my LOAD script to this.&lt;/P&gt;&lt;P&gt;quantity,&lt;BR /&gt;floor((quantity/880)+0.50,1.0) AS floorquantity&lt;/P&gt;&lt;P&gt;This gave me excel file v4 attached. Column F and I are as above - but as you can see this gives different answers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;Thanks,&amp;nbsp; Amy&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 21:08:35 GMT</pubDate>
    <dc:creator>avicnellyy</dc:creator>
    <dc:date>2024-11-16T21:08:35Z</dc:date>
    <item>
      <title>Ceiling / Floor problems</title>
      <link>https://community.qlik.com/t5/QlikView/Ceiling-Floor-problems/m-p/1563539#M441488</link>
      <description>&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;Hoping someone can help. I cannot add the QV file due to data protection, but i have exported the issues to excel and attached. See references for details.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to work out how many pallets we have in stock - to do this I am dividing total stock by 880. I need to round UP to the nearest pallet. Using a ceiling in the expression (pivot table) didn't work so I have added it into my LOAD script.&lt;/P&gt;&lt;P&gt;quantity,&lt;BR /&gt;ceil((quantity/880),1.0) AS ceilquantity&lt;/P&gt;&lt;P&gt;This gave me excel file v3 attached. Column F is what the ceiling is giving me. Column I is what it SHOULD be giving me. If I use row 7 as an example, 63880/880 = 72.59 so why is it rounding to 74, rather than 73?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found another post on here that used a floor instead so I changed my LOAD script to this.&lt;/P&gt;&lt;P&gt;quantity,&lt;BR /&gt;floor((quantity/880)+0.50,1.0) AS floorquantity&lt;/P&gt;&lt;P&gt;This gave me excel file v4 attached. Column F and I are as above - but as you can see this gives different answers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;Thanks,&amp;nbsp; Amy&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 21:08:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ceiling-Floor-problems/m-p/1563539#M441488</guid>
      <dc:creator>avicnellyy</dc:creator>
      <dc:date>2024-11-16T21:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: Ceiling / Floor problems</title>
      <link>https://community.qlik.com/t5/QlikView/Ceiling-Floor-problems/m-p/1563655#M441491</link>
      <description>The excel files, are they the output of aggregations of multiple rounded figures?&lt;BR /&gt;&lt;BR /&gt;Compare the two variants of the same source values below.&lt;BR /&gt;3.19 + 4.40 = 7.59 rounded up is 8&lt;BR /&gt;&lt;BR /&gt;3.19 rounded up is 4&lt;BR /&gt;4.40 rounded up is 5&lt;BR /&gt;4 + 5 = 9&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 01 Apr 2019 22:06:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ceiling-Floor-problems/m-p/1563655#M441491</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2019-04-01T22:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: Ceiling / Floor problems</title>
      <link>https://community.qlik.com/t5/QlikView/Ceiling-Floor-problems/m-p/1563732#M441496</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I didn't think they were, but i am starting to think this might be the reason. I have decided to accept this is the case and assume it is OK. Rightly or wrongly.&lt;/P&gt;&lt;P&gt;They are pulling through from SQL tables so it's not 100% clear what is in the background.&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2019 07:48:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ceiling-Floor-problems/m-p/1563732#M441496</guid>
      <dc:creator>avicnellyy</dc:creator>
      <dc:date>2019-04-02T07:48:40Z</dc:date>
    </item>
  </channel>
</rss>

