<?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: Measure which divides two other measures giving incorrect results in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-which-divides-two-other-measures-giving-incorrect/m-p/2972616#M99427</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="470203" data-lia-user-login="NMOORE" class="lia-mention lia-mention-user"&gt;NMOORE&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;As can be seen from the picture, the two cal1 and cal_result results are different because the values in the above cards are integers and rounded, and the two values in the table below retain two decimal places, maybe you can keep the value in the above card also two decimal places&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Best Regards!&lt;/P&gt;
&lt;P&gt;Yolo Zhu&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If this post&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;, then please consider&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Dec 2022 06:50:10 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-12-16T06:50:10Z</dc:date>
    <item>
      <title>Measure which divides two other measures giving incorrect results</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-which-divides-two-other-measures-giving-incorrect/m-p/2971735#M99353</link>
      <description>&lt;P&gt;I've been stuck with an issue where I'm dividing two measures and getting an incorrect result in the table rows and totals - it is also incorrect if I just show the different calculations as cards. The measures reach out across multiple tables within the data model, I also have circa 100 other measures which work fine. I did have this all in one measure using variables but have broken it up to error check.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For context my measures are below and I've attached a picture. CALC_1 &amp;amp; CALC_2 work fine on their own, it's only when I go to simply divide them that the results are incorrect.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;STRONG&gt;CALC_1&lt;/STRONG&gt; = SUM(vw_Monthly_Cost_Split[ACWP]) + SUM(vw_PAA_Cost[Current Control Budget]) + SUM(vw_PC_EV_Full[Cumultive])

&lt;STRONG&gt;CALC_2&lt;/STRONG&gt; = 
DIVIDE(
    SUM(vw_PC_EV_Full[Cumulative]),
    SUM(vw_PC_PV_Full[Cumulative])
)
*
DIVIDE(
    SUM(vw_PC_EV_Full[Cumulative]),
    SUM(vw_Monthly_Cost_Split[ACWP])
)

&lt;STRONG&gt;CALC_RESULT&lt;/STRONG&gt; = DIVIDE([CALC_1],[CALC_2])&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've played around with SUMX, SUMMARIZE &amp;amp; RELATED functions with no luck, although I wasn't confident in my testing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's data I can't share but I'm hoping someone might know the issue straight away. I really appreciate any help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 19:57:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-which-divides-two-other-measures-giving-incorrect/m-p/2971735#M99353</guid>
      <dc:creator>NMOORE</dc:creator>
      <dc:date>2022-12-15T19:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: Measure which divides two other measures giving incorrect results</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-which-divides-two-other-measures-giving-incorrect/m-p/2972616#M99427</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="470203" data-lia-user-login="NMOORE" class="lia-mention lia-mention-user"&gt;NMOORE&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;As can be seen from the picture, the two cal1 and cal_result results are different because the values in the above cards are integers and rounded, and the two values in the table below retain two decimal places, maybe you can keep the value in the above card also two decimal places&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Best Regards!&lt;/P&gt;
&lt;P&gt;Yolo Zhu&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If this post&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;, then please consider&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2022 06:50:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-which-divides-two-other-measures-giving-incorrect/m-p/2972616#M99427</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-16T06:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: Measure which divides two other measures giving incorrect results</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-which-divides-two-other-measures-giving-incorrect/m-p/2972934#M99442</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;SPAN&gt;Yolo Zhu. I'm aware of the decimal places. My issue is what is described in the original query above, "&lt;EM&gt;where I'm dividing two measures and getting an incorrect result in the table rows and totals&lt;/EM&gt;". the main result is off by £395k, and varies in the table rows.&lt;/SPAN&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2022 08:44:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-which-divides-two-other-measures-giving-incorrect/m-p/2972934#M99442</guid>
      <dc:creator>NMOORE</dc:creator>
      <dc:date>2022-12-16T08:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: Measure which divides two other measures giving incorrect results</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-which-divides-two-other-measures-giving-incorrect/m-p/2973056#M99450</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="470203" data-lia-user-login="NMOORE" class="lia-mention lia-mention-user"&gt;NMOORE&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe you can try to use round() function to format the measure,&lt;/P&gt;
&lt;P&gt;e.g Round(DIVIDE([CALC_1],[CALC_2]),2)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you can refer to the following link:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/Incorrect-division-on-measures/m-p/1427811" target="_blank" rel="noopener"&gt;Solved: Re: Incorrect division on measures - Microsoft Power BI Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/dax/round-function-dax" target="_blank" rel="noopener"&gt;ROUND function (DAX) - DAX | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards!&lt;/P&gt;
&lt;P&gt;Yolo Zhu&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If this post&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;, then please consider&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2022 09:34:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-which-divides-two-other-measures-giving-incorrect/m-p/2973056#M99450</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-16T09:34:48Z</dc:date>
    </item>
  </channel>
</rss>

