<?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 Not Working in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Round-Function-Not-Working/m-p/118762#M603445</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to create a Table that shows the Outstanding Balance for clients here is an example of the issue, where the outstanding balance is zero, however, it is appearing in the chart.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Untitled1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/211765_Untitled1.png" style="height: 199px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Aug 2018 15:07:52 GMT</pubDate>
    <dc:creator>whiteymcaces</dc:creator>
    <dc:date>2018-08-24T15:07:52Z</dc:date>
    <item>
      <title>Round Function Not Working</title>
      <link>https://community.qlik.com/t5/QlikView/Round-Function-Not-Working/m-p/118756#M603439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have raw data that I am loading from a QVD file. The QVD is created from a Select * From statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I noticed that zero lines were appearing in my charts, even thought I was surpressing zero's etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Upon investigation, I found that the number data in the QVD had up to 13 decimal places, so even though I was only displaying 2 decimal places, the value was not zero, like 0.0008 or 0.0000015 etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the Round function in the script to clean all this up, however, the resulting values are identical to the source values, so Round(0.00015, 0.01) = 0.00015 not 0.00.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are some examples of my script :&lt;/P&gt;&lt;P&gt;Round(Amount, 0.01)&amp;nbsp; as Amount,&lt;/P&gt;&lt;P&gt;Round(Amount * 10, 0) / 10 as Amount,&lt;/P&gt;&lt;P&gt;Round(Floor(If(IsDebit = 1, Amount * -1000, Amount * 1000)) / 1000, 0.01) as Amount,&lt;/P&gt;&lt;P&gt;Amount as TestAmount,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data in TestAmount and Amount always match.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Round function has no effect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2018 04:46:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Round-Function-Not-Working/m-p/118756#M603439</guid>
      <dc:creator>whiteymcaces</dc:creator>
      <dc:date>2018-08-24T04:46:58Z</dc:date>
    </item>
    <item>
      <title>Re: Round Function Not Working</title>
      <link>https://community.qlik.com/t5/QlikView/Round-Function-Not-Working/m-p/118757#M603440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;Very strange. This load script &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Table]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;: &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; *, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Round&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Amount 1]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, 0.001) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Amount 2]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;RAND&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()*100 &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Amount 1]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AutoGenerate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; 10; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;gives me&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/211690_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2018 06:03:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Round-Function-Not-Working/m-p/118757#M603440</guid>
      <dc:creator>andrey_krylov</dc:creator>
      <dc:date>2018-08-24T06:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: Round Function Not Working</title>
      <link>https://community.qlik.com/t5/QlikView/Round-Function-Not-Working/m-p/118758#M603441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This one won't work (can't round to 0)&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=Round(Amount * 10, 0) / 10 as Amount,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;But the others should work OK.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2018 07:27:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Round-Function-Not-Working/m-p/118758#M603441</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2018-08-24T07:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: Round Function Not Working</title>
      <link>https://community.qlik.com/t5/QlikView/Round-Function-Not-Working/m-p/118759#M603442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would expect that round() worked like intended at least with the following inline-snippet it does and by loading from a qvd it should be the same:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t: load x0, num(x0) as x1, round(x0, 0.01) as x2 inline [&lt;/P&gt;&lt;P&gt;x0&lt;/P&gt;&lt;P&gt;0&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;"0,15"&lt;/P&gt;&lt;P&gt;"0,015"&lt;/P&gt;&lt;P&gt;"0,0015"&lt;/P&gt;&lt;P&gt;"0,00015"&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join(t)&lt;/P&gt;&lt;P&gt;load x0, num(fieldvalue('x2', recno())) as x3 resident t;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;results in:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/211698_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;whereby x2 is set to display multiple digits within the tab numbers. The join of the rounded fieldvalues from x2 as x3 is to show how the values are internally stored so that no formatting could mislead the interpretation. The NULL's here happens because x2 has only 4 fieldvalues and recno() within the join-load goes up to 6 which meant that the last both records from x2 have not a new value which could be stored else they contain an already stored value which is in this case 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope its helpful for you to find the reason to your issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2018 07:30:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Round-Function-Not-Working/m-p/118759#M603442</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-08-24T07:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: Round Function Not Working</title>
      <link>https://community.qlik.com/t5/QlikView/Round-Function-Not-Working/m-p/118760#M603443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here are my results:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Untitled.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/211754_Untitled.png" style="height: 230px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Amount as TestAmount,&lt;/P&gt;&lt;P&gt;If(IsDebit = 1, Amount * -1, Amount) as Amount,&lt;/P&gt;&lt;P&gt;Left(Text(Amount), Index(Text(Amount), '.') + 3) as Amount2,&lt;/P&gt;&lt;P&gt;Text(Amount) as Amount3,&lt;/P&gt;&lt;P&gt;Round(Num#(Evaluate(Text(Amount))), 0.01) as Amount4,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2018 13:24:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Round-Function-Not-Working/m-p/118760#M603443</guid>
      <dc:creator>whiteymcaces</dc:creator>
      <dc:date>2018-08-24T13:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: Round Function Not Working</title>
      <link>https://community.qlik.com/t5/QlikView/Round-Function-Not-Working/m-p/118761#M603444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By numbers different to 0 it's a different case. Important is to differ between the real (stored) values and those ones which are displayed which are not necessary the same. The reason is the used number-system of Qlik which is a binary system and not a decimal system and in which not each number has an exact value. This is quite well explained here: &lt;A href="https://community.qlik.com/qlik-blogpost/3471"&gt;Rounding Errors&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2018 14:10:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Round-Function-Not-Working/m-p/118761#M603444</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-08-24T14:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: Round Function Not Working</title>
      <link>https://community.qlik.com/t5/QlikView/Round-Function-Not-Working/m-p/118762#M603445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to create a Table that shows the Outstanding Balance for clients here is an example of the issue, where the outstanding balance is zero, however, it is appearing in the chart.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Untitled1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/211765_Untitled1.png" style="height: 199px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2018 15:07:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Round-Function-Not-Working/m-p/118762#M603445</guid>
      <dc:creator>whiteymcaces</dc:creator>
      <dc:date>2018-08-24T15:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: Round Function Not Working</title>
      <link>https://community.qlik.com/t5/QlikView/Round-Function-Not-Working/m-p/118763#M603446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Goto Chart|Properties|Number and set the desired formatting for each field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2018 15:28:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Round-Function-Not-Working/m-p/118763#M603446</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2018-08-24T15:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: Round Function Not Working</title>
      <link>https://community.qlik.com/t5/QlikView/Round-Function-Not-Working/m-p/118764#M603447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I understand your screensgot right then has it nothing to do how the data are stored or loaded else how they are calculated in the tables and you need to apply the rounding there maybe with something:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;round(sum(Outstanding), 0.01)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2018 15:49:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Round-Function-Not-Working/m-p/118764#M603447</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-08-24T15:49:37Z</dc:date>
    </item>
  </channel>
</rss>

