cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

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

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors