<?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: Ceil and Floor functions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Ceil-and-Floor-functions/m-p/757473#M269588</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if want to understand using multiple of base&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class="Bold" style="font-size: 10pt;"&gt;ceil(&lt;/SPAN&gt;&lt;SPAN class="Italic" style="font-size: 10pt;"&gt;x [ , base [ , offset ]]&lt;/SPAN&gt;&lt;SPAN class="Bold" style="font-size: 10pt;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Rounding of &lt;SPAN class="Italic"&gt;x&lt;/SPAN&gt; upwards to the nearest multiple of &lt;SPAN class="Italic"&gt;base&lt;/SPAN&gt; with an offset of &lt;SPAN class="Italic"&gt;offset&lt;/SPAN&gt;. The result is a number.&lt;/P&gt;&lt;P class="example"&gt;Examples:&lt;/P&gt;&lt;P style="padding: 0px; min-height: 8pt;"&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;ceil( 1.1 , 1 , 0.5 ) &lt;/SPAN&gt;returns 1.5&lt;/P&gt;&lt;P&gt;Multiples of 1 are 0, 1, 2, 3, 4&lt;/P&gt;&lt;P&gt;If apply the offset 0.5, you get 0.5, 1.5, 2.5, 3.5, 4.5&lt;/P&gt;&lt;P&gt;The nearest higher number for 1.1 is 1.5 and so ceil returns 1.5&lt;/P&gt;&lt;P style="padding: 0px; min-height: 8pt;"&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class="Bold" style="font-size: 10pt;"&gt;floor(&lt;/SPAN&gt;&lt;SPAN class="Italic" style="font-size: 10pt;"&gt;x [ , base [ , offset ]]&lt;/SPAN&gt;&lt;SPAN class="Bold" style="font-size: 10pt;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Rounding of &lt;SPAN class="Italic"&gt;x&lt;/SPAN&gt; downwards to the nearest multiple of &lt;SPAN class="Italic"&gt;base&lt;/SPAN&gt; with an offset of &lt;SPAN class="Italic"&gt;offset&lt;/SPAN&gt;. The result is a number.&lt;/P&gt;&lt;P class="example"&gt;Examples:&lt;/P&gt;&lt;P class="example" style="padding: 0px; min-height: 8pt;"&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code" style="font-size: 10pt;"&gt;floor( 3.88 , 5 ) &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;returns 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;multiple of 5 are 0,5,10,15&lt;/P&gt;&lt;P&gt;In this list, the nearest lower number for 3.88 is 0 and so floor() returns 0&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Dec 2014 05:36:43 GMT</pubDate>
    <dc:creator>saumyashah90</dc:creator>
    <dc:date>2014-12-18T05:36:43Z</dc:date>
    <item>
      <title>Ceil and Floor functions</title>
      <link>https://community.qlik.com/t5/QlikView/Ceil-and-Floor-functions/m-p/757469#M269584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody explain me how the Ceil and Floor function will work and how the below output is come .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;Ceil:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;ceil( 1.1 , 1 , 0.5 ) &lt;/SPAN&gt;returns &lt;STRONG&gt;1.5&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Ceil(9.156,98) returns &lt;STRONG&gt;98&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Floor:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;floor( 3.88 , 5 ) &lt;/SPAN&gt;returns &lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;floor( 1.1 , 1 , 0.5 ) &lt;/SPAN&gt;returns &lt;STRONG&gt;0.5&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Prashant&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Dec 2014 05:01:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ceil-and-Floor-functions/m-p/757469#M269584</guid>
      <dc:creator>prma7799</dc:creator>
      <dc:date>2014-12-18T05:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: Ceil and Floor functions</title>
      <link>https://community.qlik.com/t5/QlikView/Ceil-and-Floor-functions/m-p/757470#M269585</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;Please go through this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/thread/79632"&gt;http://community.qlik.com/thread/79632&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;KC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Dec 2014 05:28:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ceil-and-Floor-functions/m-p/757470#M269585</guid>
      <dc:creator>jyothish8807</dc:creator>
      <dc:date>2014-12-18T05:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: Ceil and Floor functions</title>
      <link>https://community.qlik.com/t5/QlikView/Ceil-and-Floor-functions/m-p/757471#M269586</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;Ceil function will round up a number. Ex: ceil(3.4) will return 4.&lt;/P&gt;&lt;P&gt;Floor will round down a number. Ex: floor(3.4) will return 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;AS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Dec 2014 05:33:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ceil-and-Floor-functions/m-p/757471#M269586</guid>
      <dc:creator>amit_saini</dc:creator>
      <dc:date>2014-12-18T05:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: Ceil and Floor functions</title>
      <link>https://community.qlik.com/t5/QlikView/Ceil-and-Floor-functions/m-p/757472#M269587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;See&lt;/P&gt;&lt;P&gt;1)Both gives always a positive number always&lt;/P&gt;&lt;P&gt;2)Both gives rounding of base with offset&lt;/P&gt;&lt;P&gt;3)ceil/floor&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (x[,base[,offset]])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a)when you have single number it is x&lt;/P&gt;&lt;P&gt;b)when you have two numbers it is x and offset&lt;/P&gt;&lt;P&gt;c)when you have three it is x,base,offset&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now think offset as + or - values on scale&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so lets take your example&lt;/P&gt;&lt;P&gt;1)Ceil(1.1,1,0.5)&lt;/P&gt;&lt;P&gt;here 1 is base and 0.5 is offset.&lt;/P&gt;&lt;P&gt;so because it is ceil rounding will be done upwards&amp;nbsp;&amp;nbsp; -0.5 ,0,0.5,&lt;STRONG style="text-decoration: underline;"&gt;1&lt;/STRONG&gt;,1.5 so if you go 0.5 up from1 you will reach to 1.5&lt;/P&gt;&lt;P&gt;hence result is 1.5&lt;/P&gt;&lt;P&gt;and similarly for floor rounding of is done downwards it is 0.5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)Ceil(9.156,98)&lt;/P&gt;&lt;P&gt;x=9.156 and 98 is the offset&lt;/P&gt;&lt;P&gt;when there are 2 numbers you get max of both in ceil if it goes above offset and 0 if it goes below 0 with offset in floor&lt;/P&gt;&lt;P&gt;hence 98 in ceil&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and floor(3.88,5)&lt;/P&gt;&lt;P&gt;when you think on scale it will go below 0 hence floor of this is 0&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Dec 2014 05:33:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ceil-and-Floor-functions/m-p/757472#M269587</guid>
      <dc:creator>saumyashah90</dc:creator>
      <dc:date>2014-12-18T05:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: Ceil and Floor functions</title>
      <link>https://community.qlik.com/t5/QlikView/Ceil-and-Floor-functions/m-p/757473#M269588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if want to understand using multiple of base&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class="Bold" style="font-size: 10pt;"&gt;ceil(&lt;/SPAN&gt;&lt;SPAN class="Italic" style="font-size: 10pt;"&gt;x [ , base [ , offset ]]&lt;/SPAN&gt;&lt;SPAN class="Bold" style="font-size: 10pt;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Rounding of &lt;SPAN class="Italic"&gt;x&lt;/SPAN&gt; upwards to the nearest multiple of &lt;SPAN class="Italic"&gt;base&lt;/SPAN&gt; with an offset of &lt;SPAN class="Italic"&gt;offset&lt;/SPAN&gt;. The result is a number.&lt;/P&gt;&lt;P class="example"&gt;Examples:&lt;/P&gt;&lt;P style="padding: 0px; min-height: 8pt;"&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;ceil( 1.1 , 1 , 0.5 ) &lt;/SPAN&gt;returns 1.5&lt;/P&gt;&lt;P&gt;Multiples of 1 are 0, 1, 2, 3, 4&lt;/P&gt;&lt;P&gt;If apply the offset 0.5, you get 0.5, 1.5, 2.5, 3.5, 4.5&lt;/P&gt;&lt;P&gt;The nearest higher number for 1.1 is 1.5 and so ceil returns 1.5&lt;/P&gt;&lt;P style="padding: 0px; min-height: 8pt;"&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class="Bold" style="font-size: 10pt;"&gt;floor(&lt;/SPAN&gt;&lt;SPAN class="Italic" style="font-size: 10pt;"&gt;x [ , base [ , offset ]]&lt;/SPAN&gt;&lt;SPAN class="Bold" style="font-size: 10pt;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Rounding of &lt;SPAN class="Italic"&gt;x&lt;/SPAN&gt; downwards to the nearest multiple of &lt;SPAN class="Italic"&gt;base&lt;/SPAN&gt; with an offset of &lt;SPAN class="Italic"&gt;offset&lt;/SPAN&gt;. The result is a number.&lt;/P&gt;&lt;P class="example"&gt;Examples:&lt;/P&gt;&lt;P class="example" style="padding: 0px; min-height: 8pt;"&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code" style="font-size: 10pt;"&gt;floor( 3.88 , 5 ) &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;returns 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;multiple of 5 are 0,5,10,15&lt;/P&gt;&lt;P&gt;In this list, the nearest lower number for 3.88 is 0 and so floor() returns 0&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Dec 2014 05:36:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ceil-and-Floor-functions/m-p/757473#M269588</guid>
      <dc:creator>saumyashah90</dc:creator>
      <dc:date>2014-12-18T05:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: Ceil and Floor functions</title>
      <link>https://community.qlik.com/t5/QlikView/Ceil-and-Floor-functions/m-p/757474#M269589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;follow the following link&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/message/337447#337447" title="http://community.qlik.com/message/337447#337447"&gt;http://community.qlik.com/message/337447#337447&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Dec 2014 05:48:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ceil-and-Floor-functions/m-p/757474#M269589</guid>
      <dc:creator />
      <dc:date>2014-12-18T05:48:24Z</dc:date>
    </item>
  </channel>
</rss>

