<?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 Rounding at specific decimal point in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rounding-at-specific-decimal-point/m-p/1644967#M732151</link>
    <description>&lt;P&gt;Hi, I am loading a table from Excel and I want to round a column of numbers.&amp;nbsp; The excel version works just fine, but how do I write it in the Load statement.&amp;nbsp; Here is the excel version:&lt;/P&gt;&lt;P&gt;=IF((Amount-TRUNC(Amount))&amp;gt;=0.7,ROUNDUP(Amount,0),ROUNDDOWN(Amount,0))&lt;/P&gt;&lt;P&gt;So 28.7 would be 29 and 28.6 would be 28.&lt;/P&gt;&lt;P&gt;So what I have now is not working for me:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Color,&lt;/P&gt;&lt;P&gt;Buckets,&lt;/P&gt;&lt;P&gt;if((Amount-TRUNCATE(Amount,0)&amp;gt;=Roundup(Amount,0),Rounddown(Amount,0)) as Amount&lt;/P&gt;&lt;P&gt;From..........;&lt;/P&gt;&lt;P&gt;I can't find the appropriate syntax for this.&amp;nbsp; If anyone could point me in the right direction. Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 19:42:31 GMT</pubDate>
    <dc:creator>Lisa2</dc:creator>
    <dc:date>2024-11-16T19:42:31Z</dc:date>
    <item>
      <title>Rounding at specific decimal point</title>
      <link>https://community.qlik.com/t5/QlikView/Rounding-at-specific-decimal-point/m-p/1644967#M732151</link>
      <description>&lt;P&gt;Hi, I am loading a table from Excel and I want to round a column of numbers.&amp;nbsp; The excel version works just fine, but how do I write it in the Load statement.&amp;nbsp; Here is the excel version:&lt;/P&gt;&lt;P&gt;=IF((Amount-TRUNC(Amount))&amp;gt;=0.7,ROUNDUP(Amount,0),ROUNDDOWN(Amount,0))&lt;/P&gt;&lt;P&gt;So 28.7 would be 29 and 28.6 would be 28.&lt;/P&gt;&lt;P&gt;So what I have now is not working for me:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Color,&lt;/P&gt;&lt;P&gt;Buckets,&lt;/P&gt;&lt;P&gt;if((Amount-TRUNCATE(Amount,0)&amp;gt;=Roundup(Amount,0),Rounddown(Amount,0)) as Amount&lt;/P&gt;&lt;P&gt;From..........;&lt;/P&gt;&lt;P&gt;I can't find the appropriate syntax for this.&amp;nbsp; If anyone could point me in the right direction. Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 19:42:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rounding-at-specific-decimal-point/m-p/1644967#M732151</guid>
      <dc:creator>Lisa2</dc:creator>
      <dc:date>2024-11-16T19:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding at specific decimal point</title>
      <link>https://community.qlik.com/t5/QlikView/Rounding-at-specific-decimal-point/m-p/1644981#M732152</link>
      <description>&lt;P&gt;Translated into qlik syntax:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;LOAD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;IF(Frac(Amount)&amp;gt;=0.7,ceil(Amount),floor(Amount)) as Amount&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;From ....&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Nov 2019 06:24:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rounding-at-specific-decimal-point/m-p/1644981#M732152</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2019-11-09T06:24:16Z</dc:date>
    </item>
  </channel>
</rss>

