Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
RW23
New Member

Difference in cumulative balance between power bi and excel

I have a weird situation where I'm using Power Bi to provide cumulative balances for any given client.  Every day's balance matches to what I did manually in excel except the last day.  Nothing unusal happened on the last day.  The date filter is the same in power bi and excel as I go by posting date.  Excel's balance is the correct one.  Please advise.

 

This is Power Bi:

RW23_1-1776694625262.png

This is Excel:

RW23_2-1776694665092.png

 

My formula for daily balance in DAX is:

DAILY BALANCE =
CALCULATE(
    SUM(Data[Amount]),
    FILTER(
        ALL('Dateupdated'),
        'Dateupdated'[Date] <= MAX('Dateupdated'[Date])
    )
)

 

 

 

6 REPLIES 6
RDewi
Frequent Visitor

Hi,

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:

DAILY BALANCE =
CALCULATE(
    SUM(Data[Amount]),
    FILTER(
        ALL('Dateupdated'[Date]) --just take Date
        'Dateupdated'[Date] <= MAX('Dateupdated'[Date])
    )
)
v-sgandrathi
Community Support
Community Support

Hi @RW23,

 

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.

 

Thank you.

v-sgandrathi
Community Support
Community Support

Hi @RW23,

 

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.

 

Thank you.

krishnakanth240
Resident Rockstar
Resident Rockstar

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. 

You can use ALLSELECTED() where calculation respects applied date filter and matches Excel.

DAILY BALANCE =

CALCULATE(SUM(Data[Amount]),FILTER(ALLSELECTED('Dateupdated'),'Dateupdated'[Date] <= MAX('Dateupdated'[Date])))

Thanks.  That didn't work.  The difference is only on the last day which is strange.  

Hi @RW23 

Can you share the sample data in text format.

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.

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.