<?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: SUMX total not &amp;quot;adding up&amp;quot; in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-total-not-quot-adding-up-quot/m-p/2971583#M99338</link>
    <description>&lt;P&gt;In the total there is no filter on patient. Sumx is iterating over all 5 patients. While iterating it evaluates the second argument (MAX). Because there is no filter context it will evaluate every time the max of all patients (246). In the last step it will aggrate the five 246 in an sum (1260).&lt;/P&gt;</description>
    <pubDate>Thu, 15 Dec 2022 18:08:38 GMT</pubDate>
    <dc:creator>JW_van_Holst</dc:creator>
    <dc:date>2022-12-15T18:08:38Z</dc:date>
    <item>
      <title>SUMX total not "adding up"</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-total-not-quot-adding-up-quot/m-p/2971507#M99330</link>
      <description>&lt;P&gt;Hi, I am confused about the result of a DAX formula that is giving an unexpected result.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Notice how the totals for the 2 columns don't add up? This is a filtered table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Total care mins = &lt;/SPAN&gt;&lt;SPAN&gt;sum&lt;/SPAN&gt;&lt;SPAN&gt;(Table1&lt;/SPAN&gt;&lt;SPAN&gt;[Scores]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;Test = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;sumx&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;values&lt;/SPAN&gt;&lt;SPAN&gt;(Table1[PatientName]),&lt;/SPAN&gt;&lt;SPAN&gt;max&lt;/SPAN&gt;&lt;SPAN&gt;(Table1[Scores])))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;The ACTUAL values from the data are:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Scores&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;129&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;99&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;246&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;213&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;243&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I just cannot get my head around why these 2 totals are different. If I remove all the filters, they are still different so I don't think this is the reason.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;What am I missing?&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 15 Dec 2022 17:18:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-total-not-quot-adding-up-quot/m-p/2971507#M99330</guid>
      <dc:creator>DataSkills</dc:creator>
      <dc:date>2022-12-15T17:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: SUMX total not "adding up"</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-total-not-quot-adding-up-quot/m-p/2971583#M99338</link>
      <description>&lt;P&gt;In the total there is no filter on patient. Sumx is iterating over all 5 patients. While iterating it evaluates the second argument (MAX). Because there is no filter context it will evaluate every time the max of all patients (246). In the last step it will aggrate the five 246 in an sum (1260).&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 18:08:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-total-not-quot-adding-up-quot/m-p/2971583#M99338</guid>
      <dc:creator>JW_van_Holst</dc:creator>
      <dc:date>2022-12-15T18:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: SUMX total not "adding up"</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-total-not-quot-adding-up-quot/m-p/2971600#M99341</link>
      <description>&lt;P&gt;Thank you JW_van_Holst! I now get where this number comes from. That makes sense to me.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 18:23:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-total-not-quot-adding-up-quot/m-p/2971600#M99341</guid>
      <dc:creator>DataSkills</dc:creator>
      <dc:date>2022-12-15T18:23:19Z</dc:date>
    </item>
  </channel>
</rss>

