<?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: DAX Measure: Incorrect Total of PBI vs Excel export in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-Incorrect-Total-of-PBI-vs-Excel-export/m-p/4413382#M175271</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="556934" data-lia-user-login="datajunkie_29" class="lia-mention lia-mention-user"&gt;datajunkie_29&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Can you provide some sample data or sample PBIX files that don't contain privacy so that we can analyze them?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you have already solved this problem, you are welcome to share your workaround and mark it as a solution so that other users can benefit as well.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin-bottom: 6.0pt;"&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin-bottom: 6.0pt;"&gt;&lt;SPAN&gt;Jianpeng &lt;/SPAN&gt;&lt;SPAN&gt;Li&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin-bottom: 6.0pt;"&gt;&lt;SPAN&gt;If this post &lt;STRONG&gt;&lt;I&gt;helps&lt;/I&gt;&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 17 Feb 2025 08:44:03 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2025-02-17T08:44:03Z</dc:date>
    <item>
      <title>DAX Measure: Incorrect Total of PBI vs Excel export</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-Incorrect-Total-of-PBI-vs-Excel-export/m-p/4407765#M175019</link>
      <description>&lt;P&gt;Hello Power BI Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm facing an issue with my DAX measure Budget Balance, where the totals in Power BI visual don't match when exported the results to Excel.&amp;nbsp;The row-level calculations seem fine, but the total is incorrect.&lt;/P&gt;&lt;P&gt;Here’s my current measure trace:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Due = [ParticipationAmt] - [ReceivedAmt]&lt;/LI&gt;&lt;LI&gt;OpenAging = CALCULATE([Due], Event[Event Age Group] &amp;lt;&amp;gt; "Paid/Completed", REMOVEFILTERS(Event[Event Date]), Event[Event Age] &amp;gt; 0)&lt;/LI&gt;&lt;LI&gt;FlatRatesTotal = IF(ISINSCOPE('Branch'[FPA Name]) || ISINSCOPE('Branch'[RM Name]) || ISINSCOPE('Branch'[Branch]), BLANK(),&lt;BR /&gt;SUM('Flat Rates'[Flat Rates]))&lt;/LI&gt;&lt;LI&gt;Total YTD Budget = [ActualBudgetTotal] + [FlatRatesTotal]&lt;/LI&gt;&lt;LI&gt;Budget Balance = IF([Total YTD Budget] = 0, [OpenAging]*-1, [Total YTD Budget] - SUM('Transaction Detail'[Participation/Received]))&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Calculated Column:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Participation/Received = IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;LOOKUPVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Event&lt;/SPAN&gt;&lt;SPAN&gt;[Event Status]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;Event&lt;/SPAN&gt;&lt;SPAN&gt;[Event ID]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;'Transaction Detail'&lt;/SPAN&gt;&lt;SPAN&gt;[EVENTID]&lt;/SPAN&gt;&lt;SPAN&gt;)=&lt;/SPAN&gt;&lt;SPAN&gt;"Closed"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;[Received $]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;[Participation $]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;The issue: The total for Budget Balance does not align with Excel (PBI totals are lower compared to Excel) I suspect the issue may be with SUM vs. iterating functions like SUMX or how totals are aggregating at different levels.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Can anyone help identify what might be causing the incorrect total and how to fix it? Appreciate any insights!&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2025 22:37:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-Incorrect-Total-of-PBI-vs-Excel-export/m-p/4407765#M175019</guid>
      <dc:creator>datajunkie_29</dc:creator>
      <dc:date>2025-02-12T22:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Measure: Incorrect Total of PBI vs Excel export</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-Incorrect-Total-of-PBI-vs-Excel-export/m-p/4408065#M175033</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="556934" data-lia-user-login="datajunkie_29" class="lia-mention lia-mention-user"&gt;datajunkie_29&lt;/a&gt;&amp;nbsp;Try using&lt;/P&gt;
&lt;P&gt;DAX&lt;BR /&gt;Budget Balance = &lt;BR /&gt;IF(&lt;BR /&gt;[Total YTD Budget] = 0, &lt;BR /&gt;[OpenAging] * -1, &lt;BR /&gt;[Total YTD Budget] - SUMX('Transaction Detail', 'Transaction Detail'[Participation/Received])&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2025 03:37:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-Incorrect-Total-of-PBI-vs-Excel-export/m-p/4408065#M175033</guid>
      <dc:creator>bhanu_gautam</dc:creator>
      <dc:date>2025-02-13T03:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Measure: Incorrect Total of PBI vs Excel export</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-Incorrect-Total-of-PBI-vs-Excel-export/m-p/4409402#M175096</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="625922" data-lia-user-login="bhanu_gautam" class="lia-mention lia-mention-user"&gt;bhanu_gautam&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;Thank you for your response,&amp;nbsp;I've tried using &lt;STRONG&gt;SUMX&lt;/STRONG&gt;, which ensures the correct row-level results, but the grand total still doesn’t align.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2025 15:27:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-Incorrect-Total-of-PBI-vs-Excel-export/m-p/4409402#M175096</guid>
      <dc:creator>datajunkie_29</dc:creator>
      <dc:date>2025-02-13T15:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Measure: Incorrect Total of PBI vs Excel export</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-Incorrect-Total-of-PBI-vs-Excel-export/m-p/4413382#M175271</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="556934" data-lia-user-login="datajunkie_29" class="lia-mention lia-mention-user"&gt;datajunkie_29&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Can you provide some sample data or sample PBIX files that don't contain privacy so that we can analyze them?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you have already solved this problem, you are welcome to share your workaround and mark it as a solution so that other users can benefit as well.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin-bottom: 6.0pt;"&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin-bottom: 6.0pt;"&gt;&lt;SPAN&gt;Jianpeng &lt;/SPAN&gt;&lt;SPAN&gt;Li&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin-bottom: 6.0pt;"&gt;&lt;SPAN&gt;If this post &lt;STRONG&gt;&lt;I&gt;helps&lt;/I&gt;&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2025 08:44:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-Incorrect-Total-of-PBI-vs-Excel-export/m-p/4413382#M175271</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-02-17T08:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Measure: Incorrect Total of PBI vs Excel export</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-Incorrect-Total-of-PBI-vs-Excel-export/m-p/4414360#M175305</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;I’ve found a solution that correctly calculates the &lt;STRONG&gt;Budget&amp;nbsp;Balance&lt;/STRONG&gt;&amp;nbsp;total by using &lt;STRONG&gt;SUMMARIZE&amp;nbsp;&lt;/STRONG&gt;along with&amp;nbsp;&lt;STRONG&gt;SUMX&amp;nbsp;&lt;/STRONG&gt;to iterate over the summarized table &amp;amp; ensure accurate aggregation.&lt;/P&gt;&lt;P&gt;DAX Measure:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;VAR Result =
SUMMARIZE(
'Budgeted Suppliers',
'Budgeted Suppliers'[BUDGETID],
"SupplierBalance",
IF([Total YTD Budget] = 0, [OpenAging] * -1, [Total YTD Budget] - SUM('Transaction Detail'[Participation/Received]))
)

RETURN
SUMX(Result, [SupplierBalance])&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;This approach prevents Power BI from applying the calculation at the total level incorrectly and ensures the sum of row-level results matches the expected total.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thank you! Heope this helps!&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2025 17:50:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-Incorrect-Total-of-PBI-vs-Excel-export/m-p/4414360#M175305</guid>
      <dc:creator>datajunkie_29</dc:creator>
      <dc:date>2025-02-17T17:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Measure: Incorrect Total of PBI vs Excel export</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-Incorrect-Total-of-PBI-vs-Excel-export/m-p/4414363#M175306</link>
      <description>&lt;P&gt;Hi Anonymous&lt;/a&gt;, I was able to solve the problem and have posted the solution. Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2025 17:52:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-Incorrect-Total-of-PBI-vs-Excel-export/m-p/4414363#M175306</guid>
      <dc:creator>datajunkie_29</dc:creator>
      <dc:date>2025-02-17T17:52:01Z</dc:date>
    </item>
  </channel>
</rss>

