Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
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])
)
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 5 | |
| 4 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 24 | |
| 12 | |
| 11 | |
| 9 | |
| 8 |