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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
c-23
Frequent Visitor

XIRR Calculation with Filters

I am trying to calculate an XIRR function in Power BI but I am having difficulties. Specifically, we are looking to create a dynamic IRR function in Power BI that would allow us to calculate the IRR for each investment based on a certain period end – for example, would like to calculate a since inception to-date XIRR for “investment A” but also have the ability to back into prior period XIRRs as well. As you can see, we have multiple underlying investments, each which has their own specific IRR calculation and that is where we are getting tripped up. Basically, the end goal is to be able to choose a date from a drop down, and have a table showing each investment and their respective IRR based on the chosen date. One thing to note is that the data includes a “Commitment” Type, which needs to be excluded from the calculation as well. Any tips or help is greatly appreciated.

 

Here is some Sample Data. Let me know if there is anything else I can provide to help the process. 

SecurityTypeValueTrade Date
Investment ACommitment1001/1/2022
Investment AContribution-508/31/2022
Investment AValuation509/30/2022
Investment AIncome511/30/2022
Investment ADistribution2512/15/2022
Investment AValuation2312/31/2022
Investment AContribution-502/1/2023
Investment ADistribution53/15/2023
Investment AValuation703/31/2023
Investment ADistribution154/15/2023
Investment BCommitment5001/1/2022
Investment BContribution-2008/15/2022
Investment BContribution-3001/15/2023
Investment BDistribution1009/15/2022
Investment BIncome5010/31/2022
Investment BValuation1039/30/2022
Investment BValuation5512/31/2022
Investment BValuation2753/31/2023
Investment BDistribution1002/15/2023
Investment CCommitment501/1/2022
Investment CValuation15.512/31/2022
Investment CValuation163/31/2023
Investment CValuation106/30/2023
Investment CContribution-3010/15/2022
Investment CContribution-204/15/2023
Investment CDistribution1511/15/2022
Investment CDistribution255/15/2023

 

1 REPLY 1
c-23
Frequent Visitor

Another thing to add: I only want to include one Valuation, specifically the one from the period that I have selected. All other "Valuations" should be excluded from the calculation. 

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.