<?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 Difference measure wrong, but only for 1 row in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-measure-wrong-but-only-for-1-row/m-p/4791719#M183411</link>
    <description>&lt;P&gt;Hello, I am using a measure to calulate "Goal Difference".&lt;/P&gt;&lt;P&gt;The measure DAX formula = SUM('TableX' [Goals By Region] - SUM('ActionsTable' [SalesOrderMade].&lt;/P&gt;&lt;P&gt;The Goals By Region is a static table shown in Chart 2 below.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The ActionsTable is a dynamic cource I am pulling in from a dataserver, thus as more oders are made, we would get closer to the goals.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The proble is with the row labeled West becasue Achieved YTD - Goals should be a Goal Difference of 4,338 (not 18,838). Any tips on why the other rows are correct, but not this one?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 09 Sep 2025 19:14:19 GMT</pubDate>
    <dc:creator>Help_me</dc:creator>
    <dc:date>2025-09-09T19:14:19Z</dc:date>
    <item>
      <title>Difference measure wrong, but only for 1 row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-measure-wrong-but-only-for-1-row/m-p/4791719#M183411</link>
      <description>&lt;P&gt;Hello, I am using a measure to calulate "Goal Difference".&lt;/P&gt;&lt;P&gt;The measure DAX formula = SUM('TableX' [Goals By Region] - SUM('ActionsTable' [SalesOrderMade].&lt;/P&gt;&lt;P&gt;The Goals By Region is a static table shown in Chart 2 below.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The ActionsTable is a dynamic cource I am pulling in from a dataserver, thus as more oders are made, we would get closer to the goals.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The proble is with the row labeled West becasue Achieved YTD - Goals should be a Goal Difference of 4,338 (not 18,838). Any tips on why the other rows are correct, but not this one?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Sep 2025 19:14:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-measure-wrong-but-only-for-1-row/m-p/4791719#M183411</guid>
      <dc:creator>Help_me</dc:creator>
      <dc:date>2025-09-09T19:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: Difference measure wrong, but only for 1 row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-measure-wrong-but-only-for-1-row/m-p/4791723#M183412</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1313106" data-lia-user-login="Help_me" class="lia-mention lia-mention-user"&gt;Help_me&lt;/a&gt;&amp;nbsp;Hard to say, could be that the relationship has an issue like "West " not matching "West" for example due to trailing space. The All Regions line is also off fo Goal Difference but not in an obvious way. Try having each SUM statement being a VAR and then return each separately to see where the problem is.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Aug 2025 20:06:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-measure-wrong-but-only-for-1-row/m-p/4791723#M183412</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2025-08-08T20:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: Difference measure wrong, but only for 1 row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-measure-wrong-but-only-for-1-row/m-p/4791895#M183415</link>
      <description>&lt;P&gt;Hey &amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1313106" data-lia-user-login="Help_me" class="lia-mention lia-mention-user"&gt;Help_me&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;It looks like the calculation for “Goal Difference” in the West row is being thrown off because the measure is summing Goal - Achieved without correctly matching the West goal value to the West achievements. This usually happens when the region in the goals table does not perfectly match the region in the achievements table common causes are extra spaces, different spellings, or no active relationship between the two tables. Try the following approaches:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;1. Create a proper Region dimension table&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;P&gt;Build a small Regions table with each region listed once.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Link both your Goals table and your Achievements table to this Regions table.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Clean the text fields (remove spaces and invisible characters) in Power Query to ensure “West” matches exactly in all tables.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;STRONG&gt;2. Separate the measures instead of wrapping SUM around a&amp;nbsp;direct subtraction:&lt;/STRONG&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=""&gt;Achieved YTD :=
SUM ( ActionsTable[SalesOrderMade] )

Goal :=
SUM ( TableX[Goals By Region] )

Goal Difference :=
[Goal] - [Achieved YTD]&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;3. If the relationship is inactive, activate it within the measure using:&lt;/STRONG&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=""&gt;Goal :=
CALCULATE (
    SUM ( TableX[Goals By Region] ),
    USERELATIONSHIP ( TableX[Region], Regions[Region] )
)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;EM&gt;Once the region mapping and relationships are correct, West should display &lt;STRONG&gt;9,500 – 5,162 = 4,338 instead of &lt;STRONG&gt;18,838.&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&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>Sat, 09 Aug 2025 07:04:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-measure-wrong-but-only-for-1-row/m-p/4791895#M183415</guid>
      <dc:creator>Nasif_Azam</dc:creator>
      <dc:date>2025-08-09T07:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: Difference measure wrong, but only for 1 row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-measure-wrong-but-only-for-1-row/m-p/4794299#M183486</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1313106" data-lia-user-login="Help_me" class="lia-mention lia-mention-user"&gt;Help_me&lt;/a&gt;&amp;nbsp;,Thank you for reaching out to the Microsoft fabric community forum.&lt;/P&gt;
&lt;P&gt;&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;,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your prompt response&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1313106" data-lia-user-login="Help_me" class="lia-mention lia-mention-user"&gt;Help_me&lt;/a&gt;&amp;nbsp;I wanted to follow up and confirm whether you’ve had a chance to review the information&amp;nbsp; shared by &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;, &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;. If you have any questions or need further clarification, please don’t hesitate to reach out.&lt;/P&gt;
&lt;P&gt;If you're still encountering any challenges, feel free to let us know we’d be glad to assist you further.&lt;/P&gt;
&lt;P&gt;Looking forward to your response.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Best regards,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Lakshmi&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Aug 2025 10:41:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-measure-wrong-but-only-for-1-row/m-p/4794299#M183486</guid>
      <dc:creator>v-lgarikapat</dc:creator>
      <dc:date>2025-08-12T10:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: Difference measure wrong, but only for 1 row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-measure-wrong-but-only-for-1-row/m-p/4798210#M183597</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1313106" data-lia-user-login="Help_me" class="lia-mention lia-mention-user"&gt;Help_me&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;We’d like to confirm whether your issue has been successfully resolved. If you still have any questions or need further assistance, please don’t hesitate to reach out. We’re more than happy to continue supporting you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Best Regards,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Lakshmi.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Aug 2025 15:41:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-measure-wrong-but-only-for-1-row/m-p/4798210#M183597</guid>
      <dc:creator>v-lgarikapat</dc:creator>
      <dc:date>2025-08-15T15:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: Difference measure wrong, but only for 1 row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-measure-wrong-but-only-for-1-row/m-p/4800099#M183650</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1313106" data-lia-user-login="Help_me" class="lia-mention lia-mention-user"&gt;Help_me&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;We’d like to confirm whether your issue has been successfully resolved. If you still have any questions or need further assistance, please don’t hesitate to reach out. We’re more than happy to continue supporting you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Best Regards,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Lakshmi.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Aug 2025 16:37:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-measure-wrong-but-only-for-1-row/m-p/4800099#M183650</guid>
      <dc:creator>v-lgarikapat</dc:creator>
      <dc:date>2025-08-18T16:37:55Z</dc:date>
    </item>
  </channel>
</rss>

