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 September 15. Request your voucher.
Hello Friends!
I have a business need to calculate IRR in Power BI, the same way as Excel IRR formula does. It means it should assume equal-size payment periods. I know we have XIRR, but it does in fact consider the exact number days.
How do I achive classic IRR Excel formula in Power BI?
Thanks! Kamil
You could generate dummy dates which are the correct number of days apart and use that as the dates argument to XIRR, something like
SELECTCOLUMNS(
ADDCOLUMNS(
GENERATESERIES( 0, 100, 30),
"Date", [Value] + TODAY()
),
"Date", [Date]
)
which returns a date every 30 days for 100 days.
Thanks @johnt75, it defenietly seems as a correct solution. Unofrtunetly I can't validate if it's the expected result now, but I will mark your reply as Solution as sonn as I can!
Kamil
User | Count |
---|---|
68 | |
63 | |
59 | |
54 | |
28 |
User | Count |
---|---|
182 | |
81 | |
63 | |
47 | |
41 |