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.
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 |
---|---|
15 | |
8 | |
6 | |
6 | |
6 |
User | Count |
---|---|
23 | |
14 | |
13 | |
8 | |
8 |