Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Calculate XIRR from two tables
03-01-2024
05:39 AM
Hi all,
Trying to calcaulate XIRR from the below two tables. It woud be helpful if anyone can provide the right DAX formula.
Getting IRR in excel is 17.13%
Cashflow table
Date Fund Cashflow
3/1/2022 | Quantum | 2000 |
3/1/2022 | LIC | 500 |
4/1/2022 | LIC | 300 |
4/1/2022 | Quantum | 3000 |
NAV table
Date Fund Cashflow
3/1/2024 | Quantum | -3000 |
3/1/2024 | Quantum | -4000 |
3/1/2024 | LIC | -900 |
Relationship
Solved! Go to Solution.
1 ACCEPTED SOLUTION
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2024
08:46 AM

Try the following :
IRR2 =
SUMMARIZE(
Transactions_All,
Transactions_All[Fund],
"IRR", [Your_IRR_Calculation_Measure] // I assume you have a measure that calculates IRR
)
Proud to be a Power BI Super User !
Microsoft Community : https://docs.microsoft.com/en-us/users/AmiraBedhiafi
Linkedin : https://www.linkedin.com/in/amira-bedhiafi/
StackOverflow : https://stackoverflow.com/users/9517769/amira-bedhiafi
C-Sharp Corner : https://www.c-sharpcorner.com/members/amira-bedhiafi
Power BI Community :https://community.powerbi.com/t5/user/viewprofilepage/user-id/332696
5 REPLIES 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2024
07:28 AM

Hi @AmiraBedh
I am getting the correct IRR number of 17.13% with this formula
IRR =
VAR Total_Cashflow = UNION(SELECTCOLUMNS(Cashflow,"Cashflow",Cashflow[Cashflow],"date",Cashflow[Date]),
SELECTCOLUMNS(NAV,"Cashflow",NAV[Cashflow],"date",NAV[Date]))
Return
XIRR(Total_Cashflow,[Cashflow],[date])
But when i apply the filter for the specific "Fund", it's getting different IRR number
In Excel, Getting IRR for Quantum is 18.81%, for LIC is 6.16%
In reality, there are huge list of fund names to filter
Please help me how to get this sorted out.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2024
08:34 AM

Hi @AmiraBedh
Finally it's resolved it by creating table and created a measure function
Transactions_All = UNION(SELECTCOLUMNS(Cashflow,"Cashflow",Cashflow[Cashflow],"date",Cashflow[Date],"Account",Cashflow[Account],"Fund",Cashflow[Fund]),
SELECTCOLUMNS(NAV,"Cashflow",NAV[Cashflow],"date",NAV[Date],"Account",NAV[Account],"Fund",NAV[Fund]))
IRR2 = XIRR(Transactions_All,Transactions_All[Cashflow],Transactions_All[date])
I would like to get IRR reflect in a table with Fund name like below. It would be great if provide a solution on this
Fund | IRR2 |
Quantum | 18.81% |
LIC | 6.61% |
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2024
08:46 AM

Try the following :
IRR2 =
SUMMARIZE(
Transactions_All,
Transactions_All[Fund],
"IRR", [Your_IRR_Calculation_Measure] // I assume you have a measure that calculates IRR
)
Proud to be a Power BI Super User !
Microsoft Community : https://docs.microsoft.com/en-us/users/AmiraBedhiafi
Linkedin : https://www.linkedin.com/in/amira-bedhiafi/
StackOverflow : https://stackoverflow.com/users/9517769/amira-bedhiafi
C-Sharp Corner : https://www.c-sharpcorner.com/members/amira-bedhiafi
Power BI Community :https://community.powerbi.com/t5/user/viewprofilepage/user-id/332696
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2024
09:30 PM

Hi,
Share the download link of the PBI file. Show the problem and the expected result clearly.
Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2024
06:58 AM

You forgot to share the formula 🙂
Proud to be a Power BI Super User !
Microsoft Community : https://docs.microsoft.com/en-us/users/AmiraBedhiafi
Linkedin : https://www.linkedin.com/in/amira-bedhiafi/
StackOverflow : https://stackoverflow.com/users/9517769/amira-bedhiafi
C-Sharp Corner : https://www.c-sharpcorner.com/members/amira-bedhiafi
Power BI Community :https://community.powerbi.com/t5/user/viewprofilepage/user-id/332696

Helpful resources
Recommendations
Subject | Author | Posted | |
---|---|---|---|
08-07-2024 12:10 AM | |||
09-24-2024 09:58 AM | |||
06-21-2023 10:39 AM | |||
07-25-2024 08:07 AM | |||
09-03-2024 10:12 PM |
Featured Topics
Top Kudoed Authors (Last Month)
User | Count |
---|---|
121 | |
102 | |
88 | |
52 | |
46 |