<?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: round() function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/round-function/m-p/757102#M269480</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;floor(), ceil() [and not to forget round()] all have the same possible arguments:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="syntax" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A name="kanchor292" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;&lt;/A&gt;&lt;A name="Ch_ceil" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;&lt;/A&gt;&lt;SPAN class="Bold" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;ceil(&lt;/SPAN&gt;&lt;SPAN class="Italic" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;x [ , base [ , offset ]]&lt;/SPAN&gt;&lt;SPAN class="Bold" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Rounding of &lt;SPAN class="Italic" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;x&lt;/SPAN&gt; upwards to the nearest multiple of &lt;SPAN class="Italic" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;base&lt;/SPAN&gt; with an offset of &lt;SPAN class="Italic" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;offset&lt;/SPAN&gt;. The result is a number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="syntax" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A name="kanchor293" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;&lt;/A&gt;&lt;A name="Ch_floor" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;&lt;/A&gt;&lt;SPAN class="Bold" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;floor(&lt;/SPAN&gt;&lt;SPAN class="Italic" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;x [ , base [ , offset ]]&lt;/SPAN&gt;&lt;SPAN class="Bold" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Rounding of &lt;SPAN class="Italic" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;x&lt;/SPAN&gt; downwards to the nearest multiple of &lt;SPAN class="Italic" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;base&lt;/SPAN&gt; with an offset of &lt;SPAN class="Italic" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;offset&lt;/SPAN&gt;. The result is a number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="syntax" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A name="kanchor295" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;&lt;/A&gt;&lt;A name="Ch_round" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;&lt;/A&gt;&lt;SPAN class="Bold" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;round(&lt;/SPAN&gt;&lt;SPAN class="Italic" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt; x [ , base [ , offset ]]&lt;/SPAN&gt;&lt;SPAN class="Bold" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Rounding of &lt;SPAN class="Italic" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;x&lt;/SPAN&gt; upwards or downwards to the nearest multiple of &lt;SPAN class="Italic" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;base&lt;/SPAN&gt; with an offset of &lt;SPAN class="Italic" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;offset&lt;/SPAN&gt;. The result is a number. If &lt;SPAN class="Italic" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;x&lt;/SPAN&gt; is exactly in the middle of an interval, it is rounded upwards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;'x' is your input number. 'offset' is the number your intervals start from. base is the interval increment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;So &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: Tahoma, sans-serif; color: #737373;"&gt;ex2.floor( 1.1 , 1 , 0.5 ) &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;creates intervals like [0.5, 1.5]; [1.5, 2.5]; [2.5, 3.5] ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;If your input is 1.1, the first interval is the matching one. floor() now returns the lower limit and ceil() the upper limit of the matching interval.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;Hope this helps,&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Nov 2014 11:10:25 GMT</pubDate>
    <dc:creator>sujeetsingh</dc:creator>
    <dc:date>2014-11-17T11:10:25Z</dc:date>
    <item>
      <title>round() function</title>
      <link>https://community.qlik.com/t5/QlikView/round-function/m-p/757100#M269478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;hai guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp; how to use round() function??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; plese give me script??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2014 11:02:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/round-function/m-p/757100#M269478</guid>
      <dc:creator />
      <dc:date>2014-11-17T11:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: round() function</title>
      <link>https://community.qlik.com/t5/QlikView/round-function/m-p/757101#M269479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;example u have data like&lt;/P&gt;&lt;P&gt;sales:&lt;/P&gt;&lt;P&gt;100.23&lt;/P&gt;&lt;P&gt;200.34&lt;/P&gt;&lt;P&gt;300.55&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then&lt;/P&gt;&lt;P&gt;to round the sales&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;round(sales) &amp;gt;round(100.23)&amp;gt; output is 100&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;round(300.55) &amp;gt; 301&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2014 11:05:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/round-function/m-p/757101#M269479</guid>
      <dc:creator />
      <dc:date>2014-11-17T11:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: round() function</title>
      <link>https://community.qlik.com/t5/QlikView/round-function/m-p/757102#M269480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;floor(), ceil() [and not to forget round()] all have the same possible arguments:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="syntax" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A name="kanchor292" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;&lt;/A&gt;&lt;A name="Ch_ceil" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;&lt;/A&gt;&lt;SPAN class="Bold" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;ceil(&lt;/SPAN&gt;&lt;SPAN class="Italic" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;x [ , base [ , offset ]]&lt;/SPAN&gt;&lt;SPAN class="Bold" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Rounding of &lt;SPAN class="Italic" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;x&lt;/SPAN&gt; upwards to the nearest multiple of &lt;SPAN class="Italic" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;base&lt;/SPAN&gt; with an offset of &lt;SPAN class="Italic" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;offset&lt;/SPAN&gt;. The result is a number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="syntax" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A name="kanchor293" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;&lt;/A&gt;&lt;A name="Ch_floor" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;&lt;/A&gt;&lt;SPAN class="Bold" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;floor(&lt;/SPAN&gt;&lt;SPAN class="Italic" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;x [ , base [ , offset ]]&lt;/SPAN&gt;&lt;SPAN class="Bold" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Rounding of &lt;SPAN class="Italic" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;x&lt;/SPAN&gt; downwards to the nearest multiple of &lt;SPAN class="Italic" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;base&lt;/SPAN&gt; with an offset of &lt;SPAN class="Italic" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;offset&lt;/SPAN&gt;. The result is a number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="syntax" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A name="kanchor295" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;&lt;/A&gt;&lt;A name="Ch_round" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;&lt;/A&gt;&lt;SPAN class="Bold" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;round(&lt;/SPAN&gt;&lt;SPAN class="Italic" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt; x [ , base [ , offset ]]&lt;/SPAN&gt;&lt;SPAN class="Bold" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Rounding of &lt;SPAN class="Italic" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;x&lt;/SPAN&gt; upwards or downwards to the nearest multiple of &lt;SPAN class="Italic" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;base&lt;/SPAN&gt; with an offset of &lt;SPAN class="Italic" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;offset&lt;/SPAN&gt;. The result is a number. If &lt;SPAN class="Italic" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;x&lt;/SPAN&gt; is exactly in the middle of an interval, it is rounded upwards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;'x' is your input number. 'offset' is the number your intervals start from. base is the interval increment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;So &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: Tahoma, sans-serif; color: #737373;"&gt;ex2.floor( 1.1 , 1 , 0.5 ) &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;creates intervals like [0.5, 1.5]; [1.5, 2.5]; [2.5, 3.5] ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;If your input is 1.1, the first interval is the matching one. floor() now returns the lower limit and ceil() the upper limit of the matching interval.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;Hope this helps,&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2014 11:10:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/round-function/m-p/757102#M269480</guid>
      <dc:creator>sujeetsingh</dc:creator>
      <dc:date>2014-11-17T11:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: round() function</title>
      <link>https://community.qlik.com/t5/QlikView/round-function/m-p/757103#M269481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;round(2.4) - 2&lt;/P&gt;&lt;P&gt;round(2.6) -3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;round(3.88,0.1) - 3.9&lt;/P&gt;&lt;P&gt;round(3.88,5) - 5&lt;/P&gt;&lt;P&gt;round(1.1,1,0.5) - 1.5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use as expression as the example&lt;/P&gt;&lt;P&gt;if(round(sales) &amp;gt; 3, round(3.88), round(3.88,0.1))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2014 11:11:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/round-function/m-p/757103#M269481</guid>
      <dc:creator />
      <dc:date>2014-11-17T11:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: round() function</title>
      <link>https://community.qlik.com/t5/QlikView/round-function/m-p/757104#M269482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vishnupriya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please follow below links:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/337447"&gt;Re: Doubts in understanding the ceil and floor functions&lt;/A&gt;&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;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Nitha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2014 11:18:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/round-function/m-p/757104#M269482</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-17T11:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: round() function</title>
      <link>https://community.qlik.com/t5/QlikView/round-function/m-p/757105#M269483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi vishnupriya ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls close this thread by marking correct and helpful answer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2014 11:20:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/round-function/m-p/757105#M269483</guid>
      <dc:creator />
      <dc:date>2014-11-17T11:20:49Z</dc:date>
    </item>
  </channel>
</rss>

