<?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 from 3 to 2 digits in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Round-from-3-to-2-digits/m-p/59467#M9865</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Round(Number-0.000000000001, 0.01)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or even this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Round(Number-0.001, 0.01)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Jun 2018 11:34:20 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-06-21T11:34:20Z</dc:date>
    <item>
      <title>Round from 3 to 2 digits</title>
      <link>https://community.qlik.com/t5/QlikView/Round-from-3-to-2-digits/m-p/59465#M9863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to round all my expressions from 3 digits to 2 digits, but having this consideration:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF the last digit is &amp;lt;= 5 then round down.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;3.715 -&amp;gt; 3.71&lt;/P&gt;&lt;P&gt;6.453 -&amp;gt; 6.45&lt;/P&gt;&lt;P&gt;Else if the last digit is &amp;gt; 5 then rown up&lt;/P&gt;&lt;P&gt;3.716 -&amp;gt;3.72&lt;/P&gt;&lt;P&gt;1.347 -&amp;gt; 1.35&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will appreciate all the suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for helping me!! &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, 21 Jun 2018 05:54:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Round-from-3-to-2-digits/m-p/59465#M9863</guid>
      <dc:creator>jaimeeduardo_gc</dc:creator>
      <dc:date>2018-06-21T05:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: Round from 3 to 2 digits</title>
      <link>https://community.qlik.com/t5/QlikView/Round-from-3-to-2-digits/m-p/59466#M9864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried the round function? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/ChartFunctions/GeneralNumericFunctions/round.htm" style="font-size: 10pt;" title="https://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/ChartFunctions/GeneralNumericFunctions/round.htm"&gt;https://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/ChartFunctions/GeneralNumericFunctions/round.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example =round(0.856,0.01) will output 0.86, while =round(0.853,0.01) will output 0.85.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get the functionality where x &amp;lt;= 5 rounds down you could just use a conditional statement for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(mid($(a),5,1) ='5',round(&lt;SPAN style="font-size: 13.3333px;"&gt;$(a)&lt;/SPAN&gt;,0.01) - 0.01,round(&lt;SPAN style="font-size: 13.3333px;"&gt;$(a)&lt;/SPAN&gt;,0.01))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where a = 0.845 you will find you get the right result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2018 07:03:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Round-from-3-to-2-digits/m-p/59466#M9864</guid>
      <dc:creator>joseph_eftamand</dc:creator>
      <dc:date>2018-06-21T07:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: Round from 3 to 2 digits</title>
      <link>https://community.qlik.com/t5/QlikView/Round-from-3-to-2-digits/m-p/59467#M9865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Round(Number-0.000000000001, 0.01)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or even this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Round(Number-0.001, 0.01)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2018 11:34:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Round-from-3-to-2-digits/m-p/59467#M9865</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-06-21T11:34:20Z</dc:date>
    </item>
  </channel>
</rss>

