The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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])
)
User | Count |
---|---|
11 | |
8 | |
6 | |
6 | |
6 |
User | Count |
---|---|
24 | |
14 | |
13 | |
10 | |
7 |