<?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: Incorrect Total in Matrix Visual in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorrect-Total-in-Matrix-Visual/m-p/4731354#M181235</link>
    <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1289719" data-lia-user-login="AzadHGS" class="lia-mention lia-mention-user"&gt;AzadHGS&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;The issue you’re encountering with incorrect totals in your matrix visual for the &lt;STRONG&gt;BIAS&lt;/STRONG&gt; and &lt;STRONG&gt;BIAS %&lt;/STRONG&gt; rows is a common DAX behavior.&amp;nbsp;&lt;SPAN&gt;In Power BI matrix visuals:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Total rows&lt;/STRONG&gt; are &lt;STRONG&gt;not&lt;/STRONG&gt; the sum of individual values &lt;STRONG&gt;you see in the matrix&lt;/STRONG&gt;.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Instead, DAX re-evaluates the &lt;STRONG&gt;measure at the total level&amp;nbsp;&lt;/STRONG&gt;using &lt;STRONG&gt;total Plan&lt;/STRONG&gt; and &lt;STRONG&gt;total Actual&lt;/STRONG&gt;, not summing each row's calculated result.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;That’s why you're seeing:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;GSV $ BIAS (Plan vs Act) total as = 41,16,757 - 16,75,782 = 24,40,975&lt;BR /&gt;instead of the expected sum of individual biases.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;H3&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;Fix Totals Using DAX ISINSCOPE or HASONEVALUE&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;&lt;P&gt;You can customize your BIAS measures to show summed values in totals rather than default totals using ISINSCOPE() or HASONEVALUE().&lt;/P&gt;&lt;PRE&gt;GSV $ BIAS (Plan vs Act) =
IF(
    ISINSCOPE('DateTable'[Period]),
    [Plan Ship Dollar] - [Actual Ship Dollar],
    SUMX(
        VALUES('DateTable'[Period]),
        [Plan Ship Dollar] - [Actual Ship Dollar]
    )
)&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;Or if you're using a flat model without a separate date table:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;GSV $ BIAS (Plan vs Act) =
IF(
    HASONEVALUE('YourTable'[Period]),
    [Plan Ship Dollar] - [Actual Ship Dollar],
    SUMX(
        VALUES('YourTable'[Period]),
        [Plan Ship Dollar] - [Actual Ship Dollar]
    )
)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For detailed information:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/transform-model/desktop-totals" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;Microsoft Learn Documentation – Understanding Totals in Power BI&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sqlbi.com/articles/understanding-total-and-filter-context-in-dax/" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;SQLBI – Fix Incorrect Totals in DAX with SUMX&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://radacad.com/solve-the-incorrect-total-in-power-bi-matrix-visual" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;Radacad – Wrong Total in Matrix Visual in Power BI&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If you found this solution helpful, please consider accepting it and giving it a kudos (Like) it’s greatly appreciated and helps others find the solution more easily.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;&lt;A href="https://www.linkedin.com/in/nasif-azam-9aa2331a0/" target="_blank" rel="noopener nofollow noreferrer"&gt;Nasif Azam&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 13 Jun 2025 10:01:13 GMT</pubDate>
    <dc:creator>Nasif_Azam</dc:creator>
    <dc:date>2025-06-13T10:01:13Z</dc:date>
    <item>
      <title>Incorrect Total in Matrix Visual</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorrect-Total-in-Matrix-Visual/m-p/4731208#M181229</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;I'm currently working with a matrix visual that includes four measures: Actual, Plan, BIAS (calculated as Plan - Actual), and BIAS % (percentage change of Plan - Actual). While the individual row values are displaying correctly, I'm facing an issue with the row totals.&lt;/P&gt;&lt;P&gt;Specifically, the totals for Actual and Plan are accurate as they are simply summing the values. However, the totals for BIAS and BIAS % are not showing the sum of the individual row values. Instead, they are calculated as total Plan minus total Actual, which is not the expected behavior. Ideally, the BIAS total should represent the sum of all individual BIAS values across the rows, not a KPI-style aggregation.&lt;/P&gt;&lt;P&gt;I've attached the DAX measures and a snapshot of the visual for reference. Could you please take a look and let me know how this can be resolved?&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Azad&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jun 2025 08:37:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorrect-Total-in-Matrix-Visual/m-p/4731208#M181229</guid>
      <dc:creator>AzadHGS</dc:creator>
      <dc:date>2025-06-13T08:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect Total in Matrix Visual</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorrect-Total-in-Matrix-Visual/m-p/4731306#M181232</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1289719" data-lia-user-login="AzadHGS" class="lia-mention lia-mention-user"&gt;AzadHGS&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Can you please try the below DAX?&lt;BR /&gt;&lt;BR /&gt;BIAS measures.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BIAS :=&lt;BR /&gt;SUMX (&lt;BR /&gt;VALUES ( 'YourTable'[Column] ),&lt;BR /&gt;[Plan] - [Actual]&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BIAS % measure&lt;BR /&gt;&lt;BR /&gt;BIAS_Percentage_Corrected :=&lt;BR /&gt;DIVIDE (&lt;BR /&gt;SUMX (&lt;BR /&gt;VALUES ( 'YourTable'[Column] ),&lt;BR /&gt;[Plan] - [Actual]&lt;BR /&gt;),&lt;BR /&gt;SUMX (&lt;BR /&gt;VALUES ( 'YourTable'[Column] ),&lt;BR /&gt;[Plan]&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If this answer your questions, kindly accept it as a solution and give kudos.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jun 2025 09:26:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorrect-Total-in-Matrix-Visual/m-p/4731306#M181232</guid>
      <dc:creator>mdaatifraza5556</dc:creator>
      <dc:date>2025-06-13T09:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect Total in Matrix Visual</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorrect-Total-in-Matrix-Visual/m-p/4731321#M181233</link>
      <description>&lt;P&gt;I tried it but it is not working still I am getting same values.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jun 2025 09:37:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorrect-Total-in-Matrix-Visual/m-p/4731321#M181233</guid>
      <dc:creator>AzadHGS</dc:creator>
      <dc:date>2025-06-13T09:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect Total in Matrix Visual</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorrect-Total-in-Matrix-Visual/m-p/4731354#M181235</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1289719" data-lia-user-login="AzadHGS" class="lia-mention lia-mention-user"&gt;AzadHGS&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;The issue you’re encountering with incorrect totals in your matrix visual for the &lt;STRONG&gt;BIAS&lt;/STRONG&gt; and &lt;STRONG&gt;BIAS %&lt;/STRONG&gt; rows is a common DAX behavior.&amp;nbsp;&lt;SPAN&gt;In Power BI matrix visuals:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Total rows&lt;/STRONG&gt; are &lt;STRONG&gt;not&lt;/STRONG&gt; the sum of individual values &lt;STRONG&gt;you see in the matrix&lt;/STRONG&gt;.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Instead, DAX re-evaluates the &lt;STRONG&gt;measure at the total level&amp;nbsp;&lt;/STRONG&gt;using &lt;STRONG&gt;total Plan&lt;/STRONG&gt; and &lt;STRONG&gt;total Actual&lt;/STRONG&gt;, not summing each row's calculated result.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;That’s why you're seeing:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;GSV $ BIAS (Plan vs Act) total as = 41,16,757 - 16,75,782 = 24,40,975&lt;BR /&gt;instead of the expected sum of individual biases.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;H3&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;Fix Totals Using DAX ISINSCOPE or HASONEVALUE&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;&lt;P&gt;You can customize your BIAS measures to show summed values in totals rather than default totals using ISINSCOPE() or HASONEVALUE().&lt;/P&gt;&lt;PRE&gt;GSV $ BIAS (Plan vs Act) =
IF(
    ISINSCOPE('DateTable'[Period]),
    [Plan Ship Dollar] - [Actual Ship Dollar],
    SUMX(
        VALUES('DateTable'[Period]),
        [Plan Ship Dollar] - [Actual Ship Dollar]
    )
)&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;Or if you're using a flat model without a separate date table:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;GSV $ BIAS (Plan vs Act) =
IF(
    HASONEVALUE('YourTable'[Period]),
    [Plan Ship Dollar] - [Actual Ship Dollar],
    SUMX(
        VALUES('YourTable'[Period]),
        [Plan Ship Dollar] - [Actual Ship Dollar]
    )
)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For detailed information:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/transform-model/desktop-totals" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;Microsoft Learn Documentation – Understanding Totals in Power BI&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sqlbi.com/articles/understanding-total-and-filter-context-in-dax/" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;SQLBI – Fix Incorrect Totals in DAX with SUMX&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://radacad.com/solve-the-incorrect-total-in-power-bi-matrix-visual" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;Radacad – Wrong Total in Matrix Visual in Power BI&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If you found this solution helpful, please consider accepting it and giving it a kudos (Like) it’s greatly appreciated and helps others find the solution more easily.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;&lt;A href="https://www.linkedin.com/in/nasif-azam-9aa2331a0/" target="_blank" rel="noopener nofollow noreferrer"&gt;Nasif Azam&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jun 2025 10:01:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorrect-Total-in-Matrix-Visual/m-p/4731354#M181235</guid>
      <dc:creator>Nasif_Azam</dc:creator>
      <dc:date>2025-06-13T10:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect Total in Matrix Visual</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorrect-Total-in-Matrix-Visual/m-p/4731363#M181236</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="871356" data-lia-user-login="Nasif_Azam" class="lia-mention lia-mention-user"&gt;Nasif_Azam&lt;/a&gt;&amp;nbsp;, It worked !&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jun 2025 10:06:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorrect-Total-in-Matrix-Visual/m-p/4731363#M181236</guid>
      <dc:creator>AzadHGS</dc:creator>
      <dc:date>2025-06-13T10:06:32Z</dc:date>
    </item>
  </channel>
</rss>

