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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.