<?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: Ceiling function is not working for all values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Ceiling-function-is-not-working-for-all-values/m-p/599824#M222013</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ceil(ceil(112.5*4.4,0.1),5)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It looks, like somewhere after '.' it is some value. But why???? &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Apr 2014 21:05:02 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-04-03T21:05:02Z</dc:date>
    <item>
      <title>Ceiling function is not working for all values</title>
      <link>https://community.qlik.com/t5/QlikView/Ceiling-function-is-not-working-for-all-values/m-p/599821#M222010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Hi, someone created a calculated dimension for me to take our Style price and mark it up by 440% and round up to the nearest 5.&amp;nbsp; For example, a style price is $68 and marked up it comes out to $299.20 and we want it rounded up to $300.&amp;nbsp; This has been working for us, but I just discovered an issue with some prices.&amp;nbsp; I have a style price of $125 that is calculating to $550 and that is what appears for the retail, which is correct.&amp;nbsp; But I have a style price of $112.50 that should come out to $495, however this calculation is making it come out at $500.&amp;nbsp; Why would it round up the number $495 to $500, but not round up $550 to $555?&amp;nbsp; It seems to only be happening with this particular number.&amp;nbsp; If the calculation result is ending with the number 5, then I need it to stay at that number and not round it up so that it ends in 0.&amp;nbsp; Should I change the ceiling amount from 5 to something else?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;StyleMetal&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;&amp;gt;'Silver',&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;StylePrice&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;*4,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;ceil&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;StyleMetal&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='Silver',&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;StylePrice&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;*4.4,(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;StyleMetal&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;StyleMetal&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;StylePrice&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;*2)))),5)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I'd appreciate any assistance.&amp;nbsp; Thank you!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 17:27:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ceiling-function-is-not-working-for-all-values/m-p/599821#M222010</guid>
      <dc:creator />
      <dc:date>2014-04-03T17:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: Ceiling function is not working for all values</title>
      <link>https://community.qlik.com/t5/QlikView/Ceiling-function-is-not-working-for-all-values/m-p/599822#M222011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't understand the full logic of your expression, for example the condition StyleMetal = StyleMetal is always true, right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you could post a small sample application or sample data, this might help to understand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please note that rounding floating point values may show some issues:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2013/12/17/rounding-errors" title="http://community.qlik.com/blogs/qlikviewdesignblog/2013/12/17/rounding-errors"&gt;http://community.qlik.com/blogs/qlikviewdesignblog/2013/12/17/rounding-errors&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 17:34:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ceiling-function-is-not-working-for-all-values/m-p/599822#M222011</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2014-04-03T17:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Ceiling function is not working for all values</title>
      <link>https://community.qlik.com/t5/QlikView/Ceiling-function-is-not-working-for-all-values/m-p/599823#M222012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure I understand the logic entirely either as someone else wrote this, but StyleMetal either equals Gold or Silver so I'm not sure why he used StyleMetal = StyleMetal.&amp;nbsp; The logic should be if StyleMetal does not equal Silver, then take StylePrice * 4, otherwise if StyleMetal = Silver the StylePrice should be multiplied by 4.4 with a ceiling of 5.&amp;nbsp; I attached some sample data from the object, so I hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 20:34:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ceiling-function-is-not-working-for-all-values/m-p/599823#M222012</guid>
      <dc:creator />
      <dc:date>2014-04-03T20:34:30Z</dc:date>
    </item>
    <item>
      <title>Re: Ceiling function is not working for all values</title>
      <link>https://community.qlik.com/t5/QlikView/Ceiling-function-is-not-working-for-all-values/m-p/599824#M222013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ceil(ceil(112.5*4.4,0.1),5)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It looks, like somewhere after '.' it is some value. But why???? &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 21:05:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ceiling-function-is-not-working-for-all-values/m-p/599824#M222013</guid>
      <dc:creator />
      <dc:date>2014-04-03T21:05:02Z</dc:date>
    </item>
  </channel>
</rss>

