<?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: Problem with the totals when a percentage is in it in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-the-totals-when-a-percentage-is-in-it/m-p/3217797#M117514</link>
    <description>&lt;P&gt;I just checked and found out this:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Countries&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;D %&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Italy&lt;/TD&gt;&lt;TD&gt;99291,10&lt;/TD&gt;&lt;TD&gt;53402&lt;/TD&gt;&lt;TD&gt;53.78%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Brazil&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;1569087,53&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;1077107&lt;/TD&gt;&lt;TD&gt;68.65%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Total&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;1679632,91&lt;/TD&gt;&lt;TD&gt;1130509&lt;/TD&gt;&lt;TD&gt;67.31%&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, Although the sum of the column A rows doesn't add up to A's total but it seems that if I use the formula on the total of B and divide it by the total of D %, The result can match to total of A. But how can I change the total of A so that it just calulcates the actual sum of it's rows?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 03 May 2023 12:24:41 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-05-03T12:24:41Z</dc:date>
    <item>
      <title>Problem with the totals when a percentage is in it</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-the-totals-when-a-percentage-is-in-it/m-p/3217079#M117474</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a calculated measure (Let's call it A) that is being displayed in a matrix in Power BI with the rows which are countries. We are filtering the countries so only a few are shown. My problem is that the total of the column is wrong:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Italy&lt;/TD&gt;&lt;TD&gt;99291,10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Brazil&lt;/TD&gt;&lt;TD&gt;1569087,53&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Total&lt;/TD&gt;&lt;TD&gt;1679632,91&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; The formula for A is:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;A = &lt;/SPAN&gt;&lt;SPAN&gt;DIVIDE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;B&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;'C'&lt;/SPAN&gt;&lt;SPAN&gt;[C1]&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"ABC"&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;[D %]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;B and D are other calculated measures. B returns a number but D returns a percentage. The formula for D is:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;D = Divide(E, F)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;When I put all B,D,E,F also in the matrix the total of all of them works correclty but not for the A.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;How can I fix this?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 03 May 2023 10:34:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-the-totals-when-a-percentage-is-in-it/m-p/3217079#M117474</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-03T10:34:42Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with the totals when a percentage is in it</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-the-totals-when-a-percentage-is-in-it/m-p/3217797#M117514</link>
      <description>&lt;P&gt;I just checked and found out this:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Countries&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;D %&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Italy&lt;/TD&gt;&lt;TD&gt;99291,10&lt;/TD&gt;&lt;TD&gt;53402&lt;/TD&gt;&lt;TD&gt;53.78%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Brazil&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;1569087,53&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;1077107&lt;/TD&gt;&lt;TD&gt;68.65%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Total&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;1679632,91&lt;/TD&gt;&lt;TD&gt;1130509&lt;/TD&gt;&lt;TD&gt;67.31%&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, Although the sum of the column A rows doesn't add up to A's total but it seems that if I use the formula on the total of B and divide it by the total of D %, The result can match to total of A. But how can I change the total of A so that it just calulcates the actual sum of it's rows?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 12:24:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-the-totals-when-a-percentage-is-in-it/m-p/3217797#M117514</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-03T12:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with the totals when a percentage is in it</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-the-totals-when-a-percentage-is-in-it/m-p/3221272#M117733</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can try the following methods&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
Var _table=SUMMARIZE('Table','Table'[Countries],"Sum",[A])
Var _Sum=SUMX(_table,[Sum])
Return
IF(HASONEVALUE('Table'[Countries]),[A],_Sum)&lt;/LI-CODE&gt;
&lt;P&gt;For reference:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/wrong-total-of-measure/td-p/2857674" target="_blank"&gt;Solved: wrong total of measure - Microsoft Power BI Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _Charlotte&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&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;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2023 03:55:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-the-totals-when-a-percentage-is-in-it/m-p/3221272#M117733</guid>
      <dc:creator>v-zhangti</dc:creator>
      <dc:date>2023-05-05T03:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with the totals when a percentage is in it</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-the-totals-when-a-percentage-is-in-it/m-p/3221573#M117754</link>
      <description>&lt;P&gt;This did solved it. And I also understand why. Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2023 08:04:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-the-totals-when-a-percentage-is-in-it/m-p/3221573#M117754</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-05T08:04:55Z</dc:date>
    </item>
  </channel>
</rss>

