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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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

Top Solution Authors
Top Kudoed Authors