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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.