Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi
I want to add a column that has the IRR for a project.
I have two tables:
1 - the Projects
2 - the Cash Flows
Tables linked 1-* on Project
Result is not filtering by row context - Help please!
Richard
Solved! Go to Solution.
The error was caused by project 3 for which there is no data in your Cash Flows table. This formula checks for this condition and works with your data:
IRR =
IF (
'Projects'[Project] IN VALUES ( 'Cash Flows'[Project] ),
XIRR(FILTER('Cash Flows', 'Cash Flows'[Project] = 'Projects'[Project]), 'Cash Flows'[Cashflow], 'Cash Flows'[Cashflow date])
)
This could be the easiest fix:
IRR = XIRR(FILTER('Cash Flows', 'Cash Flows'[Project] = 'Projects'[Project]), 'Cash Flows'[Cashflow], 'Cash Flows'[Cashflow date])
Thanks @Martin_D - this gave an error message "A result for XIRR could not be determined because the Values and Dates arguements are empty"
Can you provide the file, pls.?
The error was caused by project 3 for which there is no data in your Cash Flows table. This formula checks for this condition and works with your data:
IRR =
IF (
'Projects'[Project] IN VALUES ( 'Cash Flows'[Project] ),
XIRR(FILTER('Cash Flows', 'Cash Flows'[Project] = 'Projects'[Project]), 'Cash Flows'[Cashflow], 'Cash Flows'[Cashflow date])
)