<?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 not totaling correctly! PLEASE HELP in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-not-totaling-correctly-PLEASE-HELP/m-p/4657234#M178313</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="407780" data-lia-user-login="HALEYSTODDARD" class="lia-mention lia-mention-user"&gt;HALEYSTODDARD&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;You need to change your DAX so that the total row is calculated correctly. This usually involves detecting if the context is at the total level and then using a different calculation.&lt;/P&gt;
&lt;P&gt;My Measure = &lt;BR /&gt;IF(&lt;BR /&gt;HASONEVALUE(Dates[Month]),&lt;BR /&gt;IF(&lt;BR /&gt;NOT(ISBLANK([Total Hours Worked])), &lt;BR /&gt;DISTINCTCOUNTNOBLANK(Logics[BBS]),&lt;BR /&gt;0&lt;BR /&gt;),&lt;BR /&gt;DISTINCTCOUNTNOBLANK(Logics[BBS])&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If my response has resolved your query, please mark it as the Accepted Solution to assist others. Additionally, a 'Kudos' would be appreciated if you found my response helpful.&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Thu, 17 Apr 2025 10:08:38 GMT</pubDate>
    <dc:creator>v-dineshya</dc:creator>
    <dc:date>2025-04-17T10:08:38Z</dc:date>
    <item>
      <title>SUMX not totaling correctly! PLEASE HELP</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-not-totaling-correctly-PLEASE-HELP/m-p/4592115#M175865</link>
      <description>&lt;P&gt;HELP!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My Measure =&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;= &lt;/SPAN&gt;&lt;SPAN&gt;SUMX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;VALUES&lt;/SPAN&gt;&lt;SPAN&gt;(Dates[Month]), &amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;IF&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; &lt;/SPAN&gt;&lt;SPAN&gt;NOT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;ISBLANK&lt;/SPAN&gt;&lt;SPAN&gt;([Total Hours Worked])), &amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;DISTINCTCOUNTNOBLANK&lt;/SPAN&gt;&lt;SPAN&gt;(Logics[BBS]), &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;It works by month but the total is still wrong. I need the total to only show 32.&lt;BR /&gt;&lt;BR /&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 03 Mar 2025 02:13:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-not-totaling-correctly-PLEASE-HELP/m-p/4592115#M175865</guid>
      <dc:creator>HALEYSTODDARD</dc:creator>
      <dc:date>2025-03-03T02:13:46Z</dc:date>
    </item>
    <item>
      <title>Re: SUMX not totaling correctly! PLEASE HELP</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-not-totaling-correctly-PLEASE-HELP/m-p/4592162#M175869</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am not sure how your semantic model looks like, but please try something like below whether it works.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;My Measure =
SUMX (
    VALUES ( Dates[Month] ),
    CALCULATE (
        IF (
            NOT ( ISBLANK ( [Total Hours Worked] ) ),
            DISTINCTCOUNTNOBLANK ( Logics[BBS] ),
            0
        )
    )
)
&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 03 Mar 2025 03:54:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-not-totaling-correctly-PLEASE-HELP/m-p/4592162#M175869</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2025-03-03T03:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: SUMX not totaling correctly! PLEASE HELP</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-not-totaling-correctly-PLEASE-HELP/m-p/4594127#M175929</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="407780" data-lia-user-login="HALEYSTODDARD" class="lia-mention lia-mention-user"&gt;HALEYSTODDARD&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;You can create &lt;FONT color="#FF0000"&gt;a new&lt;/FONT&gt; measure as below &lt;SPAN&gt;based on the existing&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;[BBS Rate]&lt;/STRONG&gt;, then put this new measure onto the visual to &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;replace&lt;/FONT&gt;&lt;/STRONG&gt; the measure [BS Rate]:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;BBS Rate =
IF (
    NOT ( ISBLANK ( [Total Hours Worked] ) ),
    DISTINCTCOUNTNOBLANK ( Logics[BBS] ),
    0
)

New measure = SUMX ( VALUES ( Dates[Month] ), [BBS Rate] )
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;In addition, you can refer the following links to try to solve your problem...&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DRii_6qkLNh8&amp;amp;data=05%7C01%7Cv-yiruan%40microsoft.com%7C11e5836724ce4154935d08db0fbdc58d%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638121079981067335%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;amp;sdata=mVay4DwgokvkezOQ%2FnaSHmqOQKXqZzC972vTExE6VgU%3D&amp;amp;reserved=0" target="_blank" rel="noopener nofollow noreferrer"&gt;Why Your Total Is Incorrect In Power BI - The Key DAX Concept To Understand&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DKa7Ds4EAjNQ&amp;amp;data=05%7C01%7Cv-yiruan%40microsoft.com%7C11e5836724ce4154935d08db0fbdc58d%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638121079981067335%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;amp;sdata=tERHpXlJXGFJ8P0wx53Ou15yNPwFJbt4FaxRYJkzKKE%3D&amp;amp;reserved=0" target="_blank" rel="noopener nofollow noreferrer"&gt;Dax for Power BI: Fixing Incorrect Measure Totals&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Tue, 04 Mar 2025 05:52:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-not-totaling-correctly-PLEASE-HELP/m-p/4594127#M175929</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-03-04T05:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: SUMX not totaling correctly! PLEASE HELP</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-not-totaling-correctly-PLEASE-HELP/m-p/4594303#M175932</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="407780" data-lia-user-login="HALEYSTODDARD" class="lia-mention lia-mention-user"&gt;HALEYSTODDARD&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need to modify your dax a bit to solve this issue :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My Measure =&lt;BR /&gt;SUMX(&lt;BR /&gt;VALUES(Dates[Month]),&lt;BR /&gt;VAR _HoursWorked = [Total Hours Worked]&lt;BR /&gt;RETURN&lt;BR /&gt;IF(&lt;BR /&gt;NOT(ISBLANK(_HoursWorked)), &lt;BR /&gt;DISTINCTCOUNTNOBLANK(Logics[BBS]),&lt;BR /&gt;0&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Alternatively you can try forcing explicit aggregation if above is not working :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My Measure =&lt;BR /&gt;SUMX(&lt;BR /&gt;SUMMARIZE(&lt;BR /&gt;Dates, &lt;BR /&gt;Dates[Month], &lt;BR /&gt;"@DistinctCount", DISTINCTCOUNTNOBLANK(Logics[BBS])&lt;BR /&gt;),&lt;BR /&gt;[@DistinctCount]&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Did I answer your query ? Mark this as solution if this helps, Kudos are appreciated.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Warm Regards,&lt;/P&gt;
&lt;P&gt;Neeraj&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Mar 2025 06:57:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-not-totaling-correctly-PLEASE-HELP/m-p/4594303#M175932</guid>
      <dc:creator>divyed</dc:creator>
      <dc:date>2025-03-04T06:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: SUMX not totaling correctly! PLEASE HELP</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-not-totaling-correctly-PLEASE-HELP/m-p/4657234#M178313</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="407780" data-lia-user-login="HALEYSTODDARD" class="lia-mention lia-mention-user"&gt;HALEYSTODDARD&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;You need to change your DAX so that the total row is calculated correctly. This usually involves detecting if the context is at the total level and then using a different calculation.&lt;/P&gt;
&lt;P&gt;My Measure = &lt;BR /&gt;IF(&lt;BR /&gt;HASONEVALUE(Dates[Month]),&lt;BR /&gt;IF(&lt;BR /&gt;NOT(ISBLANK([Total Hours Worked])), &lt;BR /&gt;DISTINCTCOUNTNOBLANK(Logics[BBS]),&lt;BR /&gt;0&lt;BR /&gt;),&lt;BR /&gt;DISTINCTCOUNTNOBLANK(Logics[BBS])&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If my response has resolved your query, please mark it as the Accepted Solution to assist others. Additionally, a 'Kudos' would be appreciated if you found my response helpful.&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 17 Apr 2025 10:08:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-not-totaling-correctly-PLEASE-HELP/m-p/4657234#M178313</guid>
      <dc:creator>v-dineshya</dc:creator>
      <dc:date>2025-04-17T10:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: SUMX not totaling correctly! PLEASE HELP</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-not-totaling-correctly-PLEASE-HELP/m-p/4662888#M178560</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="407780" data-lia-user-login="HALEYSTODDARD" class="lia-mention lia-mention-user"&gt;HALEYSTODDARD&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided for the issue worked? or Let us know if you need any further assistance?&lt;BR /&gt;If our response addressed, please mark it as Accept as solution and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;consider giving a KUDOS. Feel free to reach out if you need further assistance.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Dinesh&lt;/P&gt;</description>
      <pubDate>Tue, 22 Apr 2025 10:20:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-not-totaling-correctly-PLEASE-HELP/m-p/4662888#M178560</guid>
      <dc:creator>v-dineshya</dc:creator>
      <dc:date>2025-04-22T10:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: SUMX not totaling correctly! PLEASE HELP</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-not-totaling-correctly-PLEASE-HELP/m-p/4670821#M178907</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="407780" data-lia-user-login="HALEYSTODDARD" class="lia-mention lia-mention-user"&gt;HALEYSTODDARD&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided for the issue worked? or Let us know if you need any further assistance?&lt;BR /&gt;If our response addressed, please mark it as Accept as solution and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;consider giving a KUDOS. Feel free to reach out if you need further assistance.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Dinesh&lt;/P&gt;</description>
      <pubDate>Mon, 28 Apr 2025 11:50:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-not-totaling-correctly-PLEASE-HELP/m-p/4670821#M178907</guid>
      <dc:creator>v-dineshya</dc:creator>
      <dc:date>2025-04-28T11:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: SUMX not totaling correctly! PLEASE HELP</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-not-totaling-correctly-PLEASE-HELP/m-p/4678033#M179166</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="407780" data-lia-user-login="HALEYSTODDARD" class="lia-mention lia-mention-user"&gt;HALEYSTODDARD&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided for the issue worked? or Let us know if you need any further assistance?&lt;BR /&gt;If our response addressed, please mark it as Accept as solution and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;consider giving a KUDOS. Feel free to reach out if you need further assistance.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Dinesh&lt;/P&gt;</description>
      <pubDate>Fri, 02 May 2025 17:47:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-not-totaling-correctly-PLEASE-HELP/m-p/4678033#M179166</guid>
      <dc:creator>v-dineshya</dc:creator>
      <dc:date>2025-05-02T17:47:38Z</dc:date>
    </item>
  </channel>
</rss>

