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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
kristenk14
Frequent Visitor

How to set my closing balance for the previous month as the opening balance for the next month

Good Day,

 

I have created the following measure to calculate the closing balance for each month, since the closing balance isn't necessarily on the last day of the month,

closing_balance (EoM) = CALCULATE([flow_value], LASTNONBLANK(PARALLELPERIOD(investor_flows[date], 0, MONTH), [flow_value] ), investor_flows[flow_type] = "Balance")
 
It works perfectly, how can I then use this as the opening balance for next month?
 
Thank you
3 REPLIES 3
kristenk14
Frequent Visitor

Will the formula work if the closing balance of the previous month is not the very end of the month, but just the last day for which there is a balnce calculated?

 

kristenk14
Frequent Visitor

Hi, @amitchandak 

 

I tried it,

opening_balance = OPENINGBALANCEMONTH([flow_value], investor_flows[date], investor_flows[flow_type] ="Balance")
 
and it is not working. Am I doing something wrong with the formula?
amitchandak
Super User
Super User

@kristenk14 , use openingbalancemonth month

 

refer openingbalancemonth,openingbalancequarter, openingbalanceyear : https://youtu.be/6lzYOXI5wfo

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.