DAX Calculation

Stapes777

New Member
Joined
Jun 17, 2016
Messages
4
Good day

I have the following:
- Table 1: Database with 1000 rows like this below:

NrLoan AmountAnnual interest rateStart date of loanMaturity date

1
1 000 000 6.5000%2015/05/082018/05/08

<tbody>
</tbody><colgroup><col><col><col><col><col></colgroup>


- Table 2: Date and Period table

I have linked the "Start Date of loan" column with the dates column in the "Date and period" table

I want to insert a DAX calculation for the database line item that could calculate a value over certain months. To explain in detail:
- I insert a pivot table with months from the "Date and Period table" and then a calculated DAX item in the Values field of the pivot table.
- It will show then the interest amount on a monthly basis between the "Start date of loan" and "Maturity date" of loan

Hope this explains what I want to do, help will be much appreciated!!
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Can you give us a manual calculation for a few rows to help us better understand what you want?
 
Upvote 0
Thanks for the reply! A typical calculation would be:
- For the month of May 2015 the calc wil be;
1 000 000 × 6.5% × 24/365 ( 24 days to end of month from start date)
- June 2015 = 1 000 000 × 6.5% × 31/365
- and so on until the maturity date.

So the idea is that if I relate the date/period table with the database table and then select the months as my row filter it will have all the months down in a row with the values of the above calculation next to the corresponding month.

Hope this will help?
 
Upvote 0
I would try something like this

[Days in Month] := COUNTROWS(Calendar, Calendar[Date] >= MIN(Loans[StartDate]))
[Total Interest] := SUMX(Loans, [Days In Month] * Loans[LoanAmount] * Loans[InterestRate])
 
Upvote 0

Forum statistics

Threads
1,214,593
Messages
6,120,434
Members
448,961
Latest member
nzskater

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top