Forum Discussion
Cummulative interest payments
Hi, there
I need your help to get correct cumulative function in loan amortization schedule.
I have tried many of cummulative function, but all of them was incorect.
There is my sample data.
Thank you in advance !
GinMed
- Anonymous4 years ago
Hi GINMED ,
I suggest you to try this code.
Interest_cum = SUMX ( FILTER ( ALL ( Project ), Project[Date Projected] IN VALUES ( 'Calendar'[Date] ) && Project[Sequence] <= MIN ( Project[Sequence] ) ), CALCULATE ( 'Calculation'[Interest] ) )Result is as below.
Best Regards,
Rico ZhouIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
4 Replies
- PC2790
Community Champion
Hey GINMED ,
I beleive you will have to make some changes to your model as I can see it is not in the star schema as Calendar is not connected to both of your tables.
Hence, the cummulative value is not coming as expected.
Connect your Calendar table with the Ligumi table based on the start and end date base don which you should run your calculation of cummulative values
- AnonymousNot applicable
Hi GINMED ,
I suggest you to try this code.
Interest_cum = SUMX ( FILTER ( ALL ( Project ), Project[Date Projected] IN VALUES ( 'Calendar'[Date] ) && Project[Sequence] <= MIN ( Project[Sequence] ) ), CALCULATE ( 'Calculation'[Interest] ) )Result is as below.
Best Regards,
Rico ZhouIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.