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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
marcush
Frequent Visitor

How to calculate ending balances

So I have financial account data that just says the net change for that period. Is there a way to sum all previous net changes up to that date in power BI? Essentially I am trying to calculate the ending balances for each period in one column. It gets a little trickier when I have multiple accounts in the same data so I want it to be able to recognize different accounts if possible. Otherwise I think I will have to load all of the accounts individually into Power BI. Let me know if anyone has any suggestions.

 

Thanks!

1 REPLY 1
fbrossard
Kudo Commander
Kudo Commander

Hi @marcush,

 

For your needs, you can use several DAX functions :

 

- CLOSINGBALANCEMONTH, CLOSINGBALANCEQUARTER, CLOSINGBALANCEYEAR

- LASTNONBLANK

- ENDOFMONTH, ENDOFQUARTER, ENDOFYEAR

 

and coupled them with a filter function or a CALCULATE.

 

This post should help you 

 

 

Helpful resources

Announcements
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.

March Power BI Update Carousel

Power BI Community Update - March 2026

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