Forum Discussion
Need help with amortization tables, accumulative.
Hi, I really need help with this measure.
I've tried to make this work but I don't find the way.
So first of all my databases are in Spanish so I will try to change some labels so you can understand better.
I have these two related databases
This is the general structure of my Tiempo database
| Client ID | Name | Account | Payment | Months to liquidate |
| 1-101-225 | PACHECO FLORES MARIA EUGENIA | 1-3200-284 | RECURSOS PROPIOS | 50 |
| 1-102-23 | MARTINEZ HINOJOSA MIGUEL | 1-3200-24 | RECURSOS PROPIOS | 36 |
| 1-102-36 | MENDEZ VAZQUEZ GALDINO | 1-3200-50 | RECURSOS PROPIOS | 36 |
| 1-102-41 | JIMENEZ JALPA MARCO ANTONIO | 1-3200-55 | RECURSOS PROPIOS | 37 |
| 1-102-42 | RED DE TRANSPORTES S.A. DE C.V. | 1-3200-58 | RECURSOS PROPIOS | 37 |
| 1-102-42 | RED DE TRANSPORTES S.A. DE C.V. | 1-3200-57 | RECURSOS PROPIOS | 41 |
| 1-102-42 | RED DE TRANSPORTES S.A. DE C.V. | 1-3200-56 | RECURSOS PROPIOS | 38 |
| 1-102-45 | GONZALEZ CORTES LETICIA | 1-3200-338 | RECURSOS PROPIOS | 33 |
| 1-102-60 | ORTIZ AVILA RAMON | 1-3200-159 | RECURSOS PROPIOS | 49 |
| 1-102-60 | ORTIZ AVILA RAMON | 1-3200-83 | RECURSOS PROPIOS | 39 |
| 1-102-73 | SERRATOS RAMIREZ UBALDO ALFREDO | 1-3200-566 | CONGELADO | 5 |
| 1-102-73 | SERRATOS RAMIREZ UBALDO ALFREDO | 1-3200-103 | CONGELADO | 37 |
| 1-102-74 | SANCHEZ EVANGELISTA ALFREDO | 1-3200-106 | RECURSOS PROPIOS | 36 |
| 1-102-79 | VALENCIA HERNANDEZ PEDRO | 1-3200-180 | RECURSOS PROPIOS | 42 |
And Consolidado table is an amortization table, with the next structure.
| Client Id | Name | Account | Month | Ends | Capital | io (Interest) |
| 1-101-173 | CORTES RIVERA RUFINO ELISEO | 1-3100-200 | 1 | 30/09/2014 | - | 2,651.04 |
| 1-101-173 | CORTES RIVERA RUFINO ELISEO | 1-3100-200 | 2 | 31/10/2014 | 4,314.62 | 7,471.10 |
| 1-101-173 | CORTES RIVERA RUFINO ELISEO | 1-3100-200 | 3 | 30/11/2014 | 4,641.91 | 7,143.81 |
| 1-101-173 | CORTES RIVERA RUFINO ELISEO | 1-3100-200 | 4 | 31/12/2014 | 4,499.72 | 7,286.00 |
| 1-101-173 | CORTES RIVERA RUFINO ELISEO | 1-3100-200 | 5 | 31/01/2015 | 4,592.71 | 7,193.01 |
| 1-101-173 | CORTES RIVERA RUFINO ELISEO | 1-3100-200 | 6 | 28/02/2015 | 5,374.54 | 6,411.18 |
| 1-101-173 | CORTES RIVERA RUFINO ELISEO | 1-3100-200 | 7 | 31/03/2015 | 4,798.70 | 6,987.02 |
| 1-101-173 | CORTES RIVERA RUFINO ELISEO | 1-3100-200 | 8 | 30/04/2015 | 5,120.06 | 6,665.66 |
| 1-101-173 | CORTES RIVERA RUFINO ELISEO | 1-3100-200 | 9 | 31/05/2015 | 5,003.69 | 6,782.03 |
| 1-101-173 | CORTES RIVERA RUFINO ELISEO | 1-3100-200 | 10 | 30/06/2015 | 5,322.54 | 6,463.18 |
| 1-101-173 | CORTES RIVERA RUFINO ELISEO | 1-3100-200 | 11 | 31/07/2015 | 5,217.10 | 6,568.62 |
| 1-101-173 | CORTES RIVERA RUFINO ELISEO | 1-3100-200 | 12 | 31/08/2015 | 5,324.92 | 6,460.80 |
| 1-101-173 | CORTES RIVERA RUFINO ELISEO | 1-3100-200 | 13 | 30/09/2015 | 5,639.83 | 6,145.89 |
| 1-101-173 | CORTES RIVERA RUFINO ELISEO | 1-3100-200 | 14 | 31/10/2015 | 5,551.52 | 6,234.20 |
| 1-101-173 | CORTES RIVERA RUFINO ELISEO | 1-3100-200 | 15 | 30/11/2015 | 5,863.66 | 5,922.06 |
| 1-101-173 | CORTES RIVERA RUFINO ELISEO | 1-3100-200 | 16 | 31/12/2015 | 5,787.44 | 5,998.28 |
| 1-101-173 | CORTES RIVERA RUFINO ELISEO | 1-3100-200 | 17 | 31/01/2016 | 5,907.04 | 5,878.68 |
| 1-101-173 | CORTES RIVERA RUFINO ELISEO | 1-3100-200 | 18 | 29/02/2016 | 6,400.52 | 5,385.20 |
| 1-101-173 | CORTES RIVERA RUFINO ELISEO | 1-3100-200 | 19 | 31/03/2016 | 6,161.40 | 5,624.32 |
| 1-101-173 | CORTES RIVERA RUFINO ELISEO | 1-3100-200 | 20 | 30/04/2016 | 6,466.06 | 5,319.66 |
and it goes on, so I have an amortization table for each client and account.
what I need to do is sum the interest(IO in Consolidado database) of the months(Month in Consolidado database) it took to liquidate(Months to liquidate in Tiempo Database), because I need to know how much did I gain with that loan.
I know I'm bad explaining myself I'm sorry.
Hi SamuelFTH ,
You can create column Accumulative_Interest using DAX below.
Accumulative_Interest = CALCULATE(SUM(Consolidado[io (Interest)]),FILTER(ALLSELECTED(Consolidado),Consolidado[Month]<=EARLIER(Consolidado[Month])))
Best Regards,
Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
1 Reply
- v-xicai
Community Support
Hi SamuelFTH ,
You can create column Accumulative_Interest using DAX below.
Accumulative_Interest = CALCULATE(SUM(Consolidado[io (Interest)]),FILTER(ALLSELECTED(Consolidado),Consolidado[Month]<=EARLIER(Consolidado[Month])))
Best Regards,
Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.