<?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 issue - please help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rounding-issue-please-help/m-p/378059#M140976</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a chart which has 3 columns:&lt;/P&gt;&lt;P&gt;Column A which sums hours for a specific week, &lt;/P&gt;&lt;P&gt;Column B which sums hours for previous week&lt;/P&gt;&lt;P&gt;Column C which shows the difference between the 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that is Column A is showing 20 from true figure of 20.25 , Column B is showing 27 from true figure of 26.5 yet Column C is showing (6)&lt;/P&gt;&lt;P&gt;Basically I want consistent rounding throughout so would want Column C to show (7)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data is fed into the script in a inline table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load * Inline&lt;/P&gt;&lt;P&gt;[Select11, Equ11,&lt;/P&gt;&lt;P&gt;Agency hours,"(SUM({}IF(Employstatus='999001302',(basichours+nextdayhours+othours+nextdayot+salaryhours)))+SUM({}Agy)+Sum({}AAAGY))"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the data is shown in a table chart as follows &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expression for column A with Integer number format settings #,##0&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;=$(=replace(Equ11,'{}','{&amp;lt;Nice_Week=,Week_ClassNum={$(=min(Week_ClassNum))}&amp;gt;}'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expression for column B with Integer number format settings #,##0;(#,##0) i.e. to show any negative numbers as (...)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;=$(=replace(Equ11,'{}','{&amp;lt;Nice_Week=,Week_ClassNum={$(=min(Week_ClassNum)+1)}&amp;gt;}'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expression for column C with Integer number format settings #,##0&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=$(=replace(Equ11,'{}','{&amp;lt;Nice_Week=,Week_ClassNum={$(=min(Week_ClassNum))}&amp;gt;}'))-$(=replace(Equ11,'{}','{&amp;lt;Nice_Week=,Week_ClassNum={$(=min(Week_ClassNum)+1)}&amp;gt;}'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume I need to use the FLOOR function to avoid rounding up and down variably (which presumably is causing the issue) but where do I need to add the floor command in the above expression? I have tried experimenting with the Number Format sections to no avail.&lt;/P&gt;&lt;P&gt;Any help would be much appreciated.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Aug 2012 11:27:23 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-08-15T11:27:23Z</dc:date>
    <item>
      <title>Rounding issue - please help</title>
      <link>https://community.qlik.com/t5/QlikView/Rounding-issue-please-help/m-p/378059#M140976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a chart which has 3 columns:&lt;/P&gt;&lt;P&gt;Column A which sums hours for a specific week, &lt;/P&gt;&lt;P&gt;Column B which sums hours for previous week&lt;/P&gt;&lt;P&gt;Column C which shows the difference between the 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that is Column A is showing 20 from true figure of 20.25 , Column B is showing 27 from true figure of 26.5 yet Column C is showing (6)&lt;/P&gt;&lt;P&gt;Basically I want consistent rounding throughout so would want Column C to show (7)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data is fed into the script in a inline table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load * Inline&lt;/P&gt;&lt;P&gt;[Select11, Equ11,&lt;/P&gt;&lt;P&gt;Agency hours,"(SUM({}IF(Employstatus='999001302',(basichours+nextdayhours+othours+nextdayot+salaryhours)))+SUM({}Agy)+Sum({}AAAGY))"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the data is shown in a table chart as follows &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expression for column A with Integer number format settings #,##0&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;=$(=replace(Equ11,'{}','{&amp;lt;Nice_Week=,Week_ClassNum={$(=min(Week_ClassNum))}&amp;gt;}'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expression for column B with Integer number format settings #,##0;(#,##0) i.e. to show any negative numbers as (...)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;=$(=replace(Equ11,'{}','{&amp;lt;Nice_Week=,Week_ClassNum={$(=min(Week_ClassNum)+1)}&amp;gt;}'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expression for column C with Integer number format settings #,##0&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=$(=replace(Equ11,'{}','{&amp;lt;Nice_Week=,Week_ClassNum={$(=min(Week_ClassNum))}&amp;gt;}'))-$(=replace(Equ11,'{}','{&amp;lt;Nice_Week=,Week_ClassNum={$(=min(Week_ClassNum)+1)}&amp;gt;}'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume I need to use the FLOOR function to avoid rounding up and down variably (which presumably is causing the issue) but where do I need to add the floor command in the above expression? I have tried experimenting with the Number Format sections to no avail.&lt;/P&gt;&lt;P&gt;Any help would be much appreciated.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2012 11:27:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rounding-issue-please-help/m-p/378059#M140976</guid>
      <dc:creator />
      <dc:date>2012-08-15T11:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding issue - please help</title>
      <link>https://community.qlik.com/t5/QlikView/Rounding-issue-please-help/m-p/378060#M140977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried using round() function, like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;round(&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;$(=replace(Equ11,'{}','{&amp;lt;Nice_Week=,Week_ClassNum={$(=min(Week_ClassNum))}&amp;gt;}'))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;-&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;round(&lt;BR /&gt;&lt;/EM&gt;&lt;EM&gt;$(=replace(Equ11,'{}','{&amp;lt;Nice_Week=,Week_ClassNum={$(=min(Week_ClassNum)+1)}&amp;gt;}'))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;)&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2012 11:58:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rounding-issue-please-help/m-p/378060#M140977</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-08-15T11:58:30Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding issue - please help</title>
      <link>https://community.qlik.com/t5/QlikView/Rounding-issue-please-help/m-p/378061#M140978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Swuehl&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2012 13:12:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rounding-issue-please-help/m-p/378061#M140978</guid>
      <dc:creator />
      <dc:date>2012-08-15T13:12:54Z</dc:date>
    </item>
  </channel>
</rss>

