<?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 Qlik Sense - Rounding Inconsistencies of one formula in different places in the chart in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-Rounding-Inconsistencies-of-one-formula-in-different/m-p/1737014#M56360</link>
    <description>&lt;P&gt;Hello Qlik Community!&lt;/P&gt;&lt;P&gt;I come to you with a question about rounding in Qlik.&lt;/P&gt;&lt;P&gt;I've read the previous posts on the topic, explaining that 0.8 =/= 1.0 - 0.2 and why those inconsistencies are happening.&lt;/P&gt;&lt;P&gt;However, I think my situation is a bit different.&lt;/P&gt;&lt;P&gt;I have a bar chart and a set of measures.&lt;/P&gt;&lt;P&gt;Those measures when put as the bars on the chart have a different value than what I get when I put them in hoverlabel (as I need it customized) they return slightly different values.&lt;/P&gt;&lt;P&gt;As you can see on the attached pics, the differences are very small, but they do exist for a significant portion of data.&lt;/P&gt;&lt;P&gt;Do you know what could be the problem? Why could it happen and what would be the fix?&lt;/P&gt;&lt;P&gt;(I hope you can guide me without me sharing my data, as I am unable to do so.)&lt;/P&gt;&lt;P&gt;The examples of codes for measures with that happening are:&lt;/P&gt;&lt;P&gt;1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;if
(
Avg(CZAS_NA_1_SZT_SEK)
&amp;lt;=
Avg(CZAS_BOM_NA_1_SZT_SEK)
,
Round(Avg(CZAS_NA_1_SZT_SEK))/86400
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;if
(
//Round(Avg(CZAS_NA_1_SZT_SEK))
Avg(CZAS_NA_1_SZT_SEK)
&amp;lt;
Avg(CZAS_BOM_NA_1_SZT_SEK)
,
Round
(
Avg(CZAS_BOM_NA_1_SZT_SEK)
-
Avg(CZAS_NA_1_SZT_SEK)
)
/86400
,
Round(Avg(CZAS_BOM_NA_1_SZT_SEK))/86400
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;if
(
Avg(SUMA_CZASU_ZLECENIE)
&amp;gt;
Avg(ILOSC_PW)*Avg(CZAS_BOM_NA_1_SZT_SEK)
,
Round
(
Avg(SUMA_CZASU_ZLECENIE)
-
Avg(ILOSC_PW)*Avg(CZAS_BOM_NA_1_SZT_SEK)
)
/86400
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 18:12:45 GMT</pubDate>
    <dc:creator>WH_Aqua</dc:creator>
    <dc:date>2024-11-16T18:12:45Z</dc:date>
    <item>
      <title>Qlik Sense - Rounding Inconsistencies of one formula in different places in the chart</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-Rounding-Inconsistencies-of-one-formula-in-different/m-p/1737014#M56360</link>
      <description>&lt;P&gt;Hello Qlik Community!&lt;/P&gt;&lt;P&gt;I come to you with a question about rounding in Qlik.&lt;/P&gt;&lt;P&gt;I've read the previous posts on the topic, explaining that 0.8 =/= 1.0 - 0.2 and why those inconsistencies are happening.&lt;/P&gt;&lt;P&gt;However, I think my situation is a bit different.&lt;/P&gt;&lt;P&gt;I have a bar chart and a set of measures.&lt;/P&gt;&lt;P&gt;Those measures when put as the bars on the chart have a different value than what I get when I put them in hoverlabel (as I need it customized) they return slightly different values.&lt;/P&gt;&lt;P&gt;As you can see on the attached pics, the differences are very small, but they do exist for a significant portion of data.&lt;/P&gt;&lt;P&gt;Do you know what could be the problem? Why could it happen and what would be the fix?&lt;/P&gt;&lt;P&gt;(I hope you can guide me without me sharing my data, as I am unable to do so.)&lt;/P&gt;&lt;P&gt;The examples of codes for measures with that happening are:&lt;/P&gt;&lt;P&gt;1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;if
(
Avg(CZAS_NA_1_SZT_SEK)
&amp;lt;=
Avg(CZAS_BOM_NA_1_SZT_SEK)
,
Round(Avg(CZAS_NA_1_SZT_SEK))/86400
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;if
(
//Round(Avg(CZAS_NA_1_SZT_SEK))
Avg(CZAS_NA_1_SZT_SEK)
&amp;lt;
Avg(CZAS_BOM_NA_1_SZT_SEK)
,
Round
(
Avg(CZAS_BOM_NA_1_SZT_SEK)
-
Avg(CZAS_NA_1_SZT_SEK)
)
/86400
,
Round(Avg(CZAS_BOM_NA_1_SZT_SEK))/86400
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;if
(
Avg(SUMA_CZASU_ZLECENIE)
&amp;gt;
Avg(ILOSC_PW)*Avg(CZAS_BOM_NA_1_SZT_SEK)
,
Round
(
Avg(SUMA_CZASU_ZLECENIE)
-
Avg(ILOSC_PW)*Avg(CZAS_BOM_NA_1_SZT_SEK)
)
/86400
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 18:12:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-Sense-Rounding-Inconsistencies-of-one-formula-in-different/m-p/1737014#M56360</guid>
      <dc:creator>WH_Aqua</dc:creator>
      <dc:date>2024-11-16T18:12:45Z</dc:date>
    </item>
  </channel>
</rss>

