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

Cumulative % in loan schedule

Hi,

in my loan schedule I have calculated Interest payment with such function:

Interest_Monthly =
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.]))
return
IPMT(_Rate,_Period,_AllPeriod,_PV,0)
 
And after that I put it in second formula to getting correct calculation:
INTEREST =
var FirstPayment = CALCULATE(MIN(('Lig_Project'[Seq])),ALLSELECTED('Lig_Project'),VALUES('Lig_Project'[PL Nr.]))
var CurrentSequence = SELECTEDVALUE('Lig_Project'[Seq])
var CurrentPayment =-([Interest_Monthly])
RETURN

SWITCH(
CurrentSequence,
FirstPayment,[Interest_FIRST],
CurrentPayment
)
And how can I get correct cumulative INTEREST?
Please help me to find correct function to get cumulative INTEREST data.
 
There is my sample data.
 
Many thanks in advance.
WBR, GINMED
1 REPLY 1
lbendlin
Super User
Super User

The link to the sample file is private. Please check.

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