<?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: Struggling to display correct Total using Measures in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Struggling-to-display-correct-Total-using-Measures/m-p/4857744#M185323</link>
    <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="296339" data-lia-user-login="JustinDoh1" class="lia-mention lia-mention-user"&gt;JustinDoh1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;This isn’t really a limitation of Power BI, it’s just how DAX calculates things differently for individual rows versus totals. Each row looks at only that row’s data, while the total row looks at all the rows together, which is why the numbers can sometimes seem off. When I mentioned “multiple column values,” I meant that if your measure uses more than one column, Power BI may not know which value to pick for each row unless the calculation is written explicitly. A simple way to handle this is to use SUMX to calculate values row by row and HASONEVALUE if you need to treat totals differently. Doing this ensures that both the row-level values and the totals display correctly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 24 Oct 2025 11:49:59 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2025-10-24T11:49:59Z</dc:date>
    <item>
      <title>Struggling to display correct Total using Measures</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Struggling-to-display-correct-Total-using-Measures/m-p/4855256#M185259</link>
      <description>&lt;P&gt;Hi community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(I revised this post (from yesterday's original) to be more simpler).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have uploaded revised&amp;nbsp;&lt;A href="https://drive.google.com/file/d/1yr0owizXnYMctCCSSTbLpk6kAkfZySZU/view?usp=sharing" target="_self"&gt;PBIX file here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also uploaded &lt;A href="https://drive.google.com/file/d/1UqtfrPJSWsBRVqecwK2DQ9mIWvlhdWxA/view?usp=sharing" target="_self"&gt;underlying dataset here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently, total for "FrcstWtdScore" is displaying 65 &lt;FONT size="4"&gt;&lt;FONT size="5"&gt;instead of &lt;STRONG&gt;105&lt;/STRONG&gt;&lt;/FONT&gt;.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bottom is detail of that measure:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;FrcstWtdScore =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt; &amp;nbsp;( &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;vw_NH_HealthCitations_NM&lt;/SPAN&gt;&lt;SPAN&gt;[FrcstMths]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;lt; &lt;/SPAN&gt;&lt;SPAN&gt;13&lt;/SPAN&gt;&lt;SPAN&gt; &amp;amp;&amp;amp; ( &lt;/SPAN&gt;&lt;SPAN&gt;vw_NH_HealthCitations_NM&lt;/SPAN&gt;&lt;SPAN&gt;[Standard Deficiency_M]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;"0"&lt;/SPAN&gt;&lt;SPAN&gt; ) , &amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;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t;SPAN&gt;vw_NH_HealthCitations_NM&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; &lt;/SPAN&gt;&lt;SPAN&gt;[FrcstPointsAdj]&lt;/SPAN&gt;&lt;SPAN&gt; * (&lt;/SPAN&gt;&lt;SPAN&gt;0.25&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;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;) &lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When you add the total of each row on a csv file dataset (using SUM), it is 105, and that is what I am trying to get as a result.&lt;/P&gt;&lt;P&gt;&lt;img /&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;I am not sure what the logic of getting 65 is.&amp;nbsp; If anyone tell me how 65 got calculated, I would appreciate it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for help!&lt;/P&gt;</description>
      <pubDate>Wed, 22 Oct 2025 21:31:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Struggling-to-display-correct-Total-using-Measures/m-p/4855256#M185259</guid>
      <dc:creator>JustinDoh1</dc:creator>
      <dc:date>2025-10-22T21:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: Struggling to display correct Total using Measures</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Struggling-to-display-correct-Total-using-Measures/m-p/4855525#M185267</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="296339" data-lia-user-login="JustinDoh1" class="lia-mention lia-mention-user"&gt;JustinDoh1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;There are a lot of nested measures being used here in the pbix.my advice to you will be to create a card visual and put the first base measure on which all conditions are written and then from there investigate the value.if the base measure will come proper, the number will come correct.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Praful&lt;/P&gt;</description>
      <pubDate>Wed, 22 Oct 2025 07:41:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Struggling-to-display-correct-Total-using-Measures/m-p/4855525#M185267</guid>
      <dc:creator>Praful_Potphode</dc:creator>
      <dc:date>2025-10-22T07:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: Struggling to display correct Total using Measures</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Struggling-to-display-correct-Total-using-Measures/m-p/4855770#M185271</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="296339" data-lia-user-login="JustinDoh1" class="lia-mention lia-mention-user"&gt;JustinDoh1&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;Thanks for reaching out to Fabric community Forum.&lt;BR /&gt;I have replicated this scenario on my end using sample data with the columns: ProviderID, FrcstMths, Standard Deficiency_M, FrcstPointsAdj.&lt;BR /&gt;Below is an solution that ensures correct calculations at both the row and total levels:&lt;/P&gt;
&lt;P&gt;FrcstWtdScore =&lt;BR /&gt;IF (&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SELECTEDVALUE(vw_NH_HealthCitations_NM[FrcstMths]) &amp;lt; 13 &amp;amp;&amp;amp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SELECTEDVALUE(vw_NH_HealthCitations_NM[Standard Deficiency_M]) = 0,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SUM(vw_NH_HealthCitations_NM[FrcstPointsAdj]) * 0.75,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SUM(vw_NH_HealthCitations_NM[FrcstPointsAdj]) * 0.25&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Forecast C2/3 Wtd Issue =&lt;BR /&gt;IF (&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; HASONEVALUE(vw_NH_HealthCitations_NM[ProviderID]),&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [FrcstWtdScore],&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SUMX (&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VALUES(vw_NH_HealthCitations_NM[ProviderID]),&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CALCULATE([FrcstWtdScore])&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Oct 2025 12:07:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Struggling-to-display-correct-Total-using-Measures/m-p/4855770#M185271</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-10-22T12:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: Struggling to display correct Total using Measures</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Struggling-to-display-correct-Total-using-Measures/m-p/4856076#M185281</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;Thank you for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry. I revised the original post to be more simple.&lt;/P&gt;&lt;P&gt;Can you please try using my PBIX file attached (instead of using sample data)?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Oct 2025 20:54:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Struggling-to-display-correct-Total-using-Measures/m-p/4856076#M185281</guid>
      <dc:creator>JustinDoh1</dc:creator>
      <dc:date>2025-10-22T20:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: Struggling to display correct Total using Measures</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Struggling-to-display-correct-Total-using-Measures/m-p/4856078#M185282</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1261729" data-lia-user-login="Praful_Potphode" class="lia-mention lia-mention-user"&gt;Praful_Potphode&lt;/a&gt;&lt;/P&gt;&lt;P&gt;Thank you for your comment.&lt;/P&gt;&lt;P&gt;I revised the original post to be more simple version.&lt;/P&gt;&lt;P&gt;Can you please try using my PBIX file attached?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Oct 2025 20:48:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Struggling-to-display-correct-Total-using-Measures/m-p/4856078#M185282</guid>
      <dc:creator>JustinDoh1</dc:creator>
      <dc:date>2025-10-22T20:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: Struggling to display correct Total using Measures</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Struggling-to-display-correct-Total-using-Measures/m-p/4856711#M185298</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="296339" data-lia-user-login="JustinDoh1" class="lia-mention lia-mention-user"&gt;JustinDoh1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;The original total was 65.00 because the IF condition in the measure failed in the Grand Total (due to multiple column values), causing the logic to default to the 0.25 multiplier on all 260 points.&lt;/P&gt;
&lt;P&gt;The fix was a Single Robust SUMX Measure that forced the calculation to evaluate row-by-row, bypassing the context issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FrcstWtdScore =&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;SUMX&lt;/SPAN&gt;(&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; vw_NH_HealthCitations_NM,&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; VAR &lt;SPAN&gt;FrcstMths&lt;/SPAN&gt; = vw_NH_HealthCitations_NM[FrcstMths 3h]&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; VAR &lt;SPAN&gt;FrcstPoints&lt;/SPAN&gt; = vw_NH_HealthCitations_NM[FrcstPointsAdj 3j]&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; RETURN&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN&gt;IF&lt;/SPAN&gt;(&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN&gt;FrcstMths&lt;/SPAN&gt; = &lt;SPAN&gt;12&lt;/SPAN&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN&gt;FrcstPoints&lt;/SPAN&gt; * &lt;SPAN&gt;0.75&lt;/SPAN&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN&gt;FrcstPoints&lt;/SPAN&gt; * &lt;SPAN&gt;0.25&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;
&lt;P&gt;This measure also corrected the business logic by using the FrcstMths = 12 criteria to isolate the 80 points required for the 0.75 multiplier, resulting in the correct total of 105.00.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;I&gt;&lt;/I&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&amp;nbsp;&lt;BR /&gt;Please find the attached .pbix file for your reference.&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Oct 2025 09:44:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Struggling-to-display-correct-Total-using-Measures/m-p/4856711#M185298</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-10-23T09:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: Struggling to display correct Total using Measures</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Struggling-to-display-correct-Total-using-Measures/m-p/4857263#M185319</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;Thank you for your help.&lt;/P&gt;&lt;P&gt;Is this some limitation of PowerBI? I am still trying to understand what you meant by "multiple column values". When you say "context issue", can you elaborate little bit please?&lt;/P&gt;</description>
      <pubDate>Thu, 23 Oct 2025 20:45:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Struggling-to-display-correct-Total-using-Measures/m-p/4857263#M185319</guid>
      <dc:creator>JustinDoh1</dc:creator>
      <dc:date>2025-10-23T20:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: Struggling to display correct Total using Measures</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Struggling-to-display-correct-Total-using-Measures/m-p/4857744#M185323</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="296339" data-lia-user-login="JustinDoh1" class="lia-mention lia-mention-user"&gt;JustinDoh1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;This isn’t really a limitation of Power BI, it’s just how DAX calculates things differently for individual rows versus totals. Each row looks at only that row’s data, while the total row looks at all the rows together, which is why the numbers can sometimes seem off. When I mentioned “multiple column values,” I meant that if your measure uses more than one column, Power BI may not know which value to pick for each row unless the calculation is written explicitly. A simple way to handle this is to use SUMX to calculate values row by row and HASONEVALUE if you need to treat totals differently. Doing this ensures that both the row-level values and the totals display correctly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Oct 2025 11:49:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Struggling-to-display-correct-Total-using-Measures/m-p/4857744#M185323</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-10-24T11:49:59Z</dc:date>
    </item>
  </channel>
</rss>

