<?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: Difference in cumulative balance between power bi and excel in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-in-cumulative-balance-between-power-bi-and-excel/m-p/5154917#M187797</link>
    <description>&lt;P&gt;Thanks.&amp;nbsp; That didn't work.&amp;nbsp; The difference is only on the last day which is strange.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 20 Apr 2026 18:08:58 GMT</pubDate>
    <dc:creator>RW23</dc:creator>
    <dc:date>2026-04-20T18:08:58Z</dc:date>
    <item>
      <title>Difference in cumulative balance between power bi and excel</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-in-cumulative-balance-between-power-bi-and-excel/m-p/5154666#M187791</link>
      <description>&lt;P&gt;I have a weird situation where I'm using Power Bi to provide cumulative balances for any given client.&amp;nbsp; Every day's balance matches to what I did manually in excel except the last day.&amp;nbsp; Nothing unusal happened on the last day.&amp;nbsp; The date filter is the same in power bi and excel as I go by posting date.&amp;nbsp; Excel's balance is the correct one.&amp;nbsp; Please advise.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is Power Bi:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;This is Excel:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My formula for daily balance in DAX is:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DAILY BALANCE =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;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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>Mon, 20 Apr 2026 14:20:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-in-cumulative-balance-between-power-bi-and-excel/m-p/5154666#M187791</guid>
      <dc:creator>RW23</dc:creator>
      <dc:date>2026-04-20T14:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: Difference in cumulative balance between power bi and excel</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-in-cumulative-balance-between-power-bi-and-excel/m-p/5154860#M187795</link>
      <description>&lt;P&gt;Difference is caused by using ALL('Dateupdated') which removes date filter context and can include extra dates beyond selected range leading to an incorrect final cumulative value.&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use ALLSELECTED() where calculation respects applied date filter and matches Excel.&lt;/P&gt;&lt;P&gt;DAILY BALANCE =&lt;/P&gt;&lt;P&gt;CALCULATE(SUM(Data[Amount]),FILTER(ALLSELECTED('Dateupdated'),'Dateupdated'[Date] &amp;lt;= MAX('Dateupdated'[Date])))&lt;/P&gt;</description>
      <pubDate>Mon, 20 Apr 2026 17:12:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-in-cumulative-balance-between-power-bi-and-excel/m-p/5154860#M187795</guid>
      <dc:creator>krishnakanth240</dc:creator>
      <dc:date>2026-04-20T17:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: Difference in cumulative balance between power bi and excel</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-in-cumulative-balance-between-power-bi-and-excel/m-p/5154917#M187797</link>
      <description>&lt;P&gt;Thanks.&amp;nbsp; That didn't work.&amp;nbsp; The difference is only on the last day which is strange.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Apr 2026 18:08:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-in-cumulative-balance-between-power-bi-and-excel/m-p/5154917#M187797</guid>
      <dc:creator>RW23</dc:creator>
      <dc:date>2026-04-20T18:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: Difference in cumulative balance between power bi and excel</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-in-cumulative-balance-between-power-bi-and-excel/m-p/5155117#M187798</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1341699" data-lia-user-login="RW23" class="lia-mention lia-mention-user"&gt;RW23&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you share the sample data in text format.&lt;/P&gt;&lt;P&gt;In the Power BI Image, current state of Date column is Hierarchy, please change it to Date by clicking on Down arrow next to the field.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2026 01:09:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-in-cumulative-balance-between-power-bi-and-excel/m-p/5155117#M187798</guid>
      <dc:creator>krishnakanth240</dc:creator>
      <dc:date>2026-04-21T01:09:54Z</dc:date>
    </item>
    <item>
      <title>Re: Difference in cumulative balance between power bi and excel</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-in-cumulative-balance-between-power-bi-and-excel/m-p/5159119#M187864</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1341699" data-lia-user-login="RW23" class="lia-mention lia-mention-user"&gt;RW23&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since the discrepancy appears only on the last day, it’s probably not just caused by using ALL(), but rather something specific in the data or filter context. A frequent cause is that the 'Dateupdated'[Date] column might have a time component, which means Power BI could treat different times on the same day as separate entries, while Excel might combine them into a single date. Make sure you’re working with pure dates, for example, by using DATEVALUE. Also, check if there are any multiple or late transactions on the last day, as these can affect only the final cumulative value. Confirm that your visual uses the actual date column and not the date hierarchy, since that can change the context. For a more reliable calculation, try using REMOVEFILTERS() instead of ALL() to better manage context. Finally, compare your total sum with the last cumulative value, if they don’t match, it’s likely a filter or context issue; if they do, it may be related to how the visual groups the data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2026 10:20:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-in-cumulative-balance-between-power-bi-and-excel/m-p/5159119#M187864</guid>
      <dc:creator>v-sgandrathi</dc:creator>
      <dc:date>2026-04-27T10:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: Difference in cumulative balance between power bi and excel</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-in-cumulative-balance-between-power-bi-and-excel/m-p/5162026#M187884</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1341699" data-lia-user-login="RW23" class="lia-mention lia-mention-user"&gt;RW23&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-teams="true"&gt;I wanted to follow up on our previous suggestions regarding the issue. We would love to hear back from you to ensure we can assist you further.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-teams="true"&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2026 05:27:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-in-cumulative-balance-between-power-bi-and-excel/m-p/5162026#M187884</guid>
      <dc:creator>v-sgandrathi</dc:creator>
      <dc:date>2026-04-30T05:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: Difference in cumulative balance between power bi and excel</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-in-cumulative-balance-between-power-bi-and-excel/m-p/5176603#M187906</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;As others have mentioned, it could be due to the use of ALL. You might have data from previous year and that could be picked up since you take away all including years, months, not only dates which shows higher value in PBI compared to Excel on that last row. Try to just take all Dates, change a bit your code to:&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;DAILY BALANCE =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&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;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Data&lt;/SPAN&gt;&lt;SPAN&gt;[Amount]&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;FILTER&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;ALL&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Dateupdated'[Date]) --just take Date&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;'Dateupdated'&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;lt;= &lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Dateupdated'&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&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;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 01 May 2026 10:29:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-in-cumulative-balance-between-power-bi-and-excel/m-p/5176603#M187906</guid>
      <dc:creator>RDewi</dc:creator>
      <dc:date>2026-05-01T10:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: Difference in cumulative balance between power bi and excel</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-in-cumulative-balance-between-power-bi-and-excel/m-p/5184394#M188092</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1341699" data-lia-user-login="RW23" class="lia-mention lia-mention-user"&gt;RW23&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the update. Since the issue only occurs on the last day and previous suggestions haven't fully resolved it, could you share a small sample of the data in text or table format, along with the expected result from Excel and the result from Power BI? Also, please confirm if the Posting Date column includes any time values. This will help us better understand if the issue is related to filter context, duplicate dates, time values, or model relationships.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Power-BI-Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank"&gt;How to provide sample data in the Power BI Forum - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 18 May 2026 08:00:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-in-cumulative-balance-between-power-bi-and-excel/m-p/5184394#M188092</guid>
      <dc:creator>v-sgandrathi</dc:creator>
      <dc:date>2026-05-18T08:00:48Z</dc:date>
    </item>
  </channel>
</rss>

