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

Get Fabric certified for FREE! Don't miss your chance! Learn more

Reply
GINMED
Helper III
Helper III

Opening balance in amortization schedule

Hi, 

please help me to find correct way to calculate correct Opening balance = Previous period Closing balance.

There is my expectation:

 

GINMED_0-1682583375766.png

 

There is my formula to calculate Opening Balance: 

OPEN_BAL =
VAR _PV = [PV]
var _Rate = MAX('Lig'[Rate in period])
var _Period = MAX('Lig_Project'[Seq])
var _AllPeriod = CALCULATE(max(('Lig_Project'[Seq])),ALLSELECTED('Lig_Project'),VALUES('Lig_Project'[PL Nr.]))
var _PMT = PMT(_Rate,_AllPeriod,_PV,0)

return
fv(_Rate,_Period-1,_PMT,_PV,0)*-1
 
But it doesn't give me correct result! Because there is specific issue with first interest payment, wich is correct amount given in table, and others Interest should be calculated.
GINMED_1-1682583857991.png

 

Please, sombody help me to solve this issue!
There is my Power Bi sample
4 REPLIES 4
lbendlin
Super User
Super User

the link to the PBI file is private. Please check.

Hi, @lbendlin 

there is my sample data

lbendlin_0-1683030357744.png

There is no link between Lig and Lig_Project.  Therefore PV will be blank.

 

@lbendlin 

it doesn't affect to calculation. Lig_project is projected table from table Lig.

Helpful resources

Announcements
Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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

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.