The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
I'm trying to create a simple table of IRRs for an investment at each quarter end (as below)
The challenge is that the data includes an investment value at each quarter end but I only want the calculation to include the most recent quarter end valuation ("NAV"). See the sample of the date below:
The IRR measure I've created is as follows:
IRR =
Hi, Thanks for your message, I tried to use your measure but get the same error still. To explain further what i'm trying to do, the NAVs are for the same fund but at different times. I'm trying to get the report to generate the below tables and calculate the IRRs at the different dates and then display them in one table. So using the data in my initial question, the first date would be December :
Then for march the calculation would ignore the december 2019 cash flow and use the nav in March :
Finally in June it would ignore both previous NAV cash flows:
The output would then look like this:
Any additional help you could provide would be appreciated. Thanks!
I've been trying to solve this exact issue recently - can I ask if you managed to resolve the issue in the end?
Hi @NorthW ,
Not very clear.
If you want to calculate different XIRR based on each Fund, please try:
IRR =
VAR mdate =
MAX ( 'Fund Operations'[Date] )
RETURN
CALCULATE (
XIRR (
'Fund Operations',
'Fund Operations'[Cashflows],
'Fund Operations'[Date]
),
FILTER (
'Fund Operations',
[Fund]
IN ALLSELECTED ( 'Fund Operations'[Fund] )
&& [Operation Type] = "Drawn Capital"
&& [Date] <= DATEVALUE ( mdate )
|| [Operation Type] = "NAV"
&& [Date] = DATEVALUE ( mdate )
)
)
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.