Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Pibass
Frequent Visitor

Help with XIRR

I am using the XIRR function which seems to be working fine for all cases, but one. Shown here:

Pibass_0-1709072186023.png

 

The cashflows work in Excel to calculate the XIRR to approximately 27%. 
Here is a link to the cashflows:
https://1drv.ms/u/s!Ao6v0drQftqRhaFhSoO5lNOZeigeeA?e=lghItN 

Here is the DAX for my measure:

Pibass_1-1709072468470.png


Thanks in advance for any help!



 

2 REPLIES 2
Pibass
Frequent Visitor

Thanks for the tips. I initially avoided the use of IFERROR, but when I do that, the row was excluded completely from my results. I added it to see which rows were missing.

lbendlin
Super User
Super User

Lotsa caveats.

 

  • The series of cash flow values must contain at least one positive number and one negative number.

  • Avoid using ISERROR or IFERROR functions to capture an error returned by XIRR. If some inputs to the function may result in a no solution error, providing an alternateResult parameter is the most reliable and highest performing way to handle the error.

  • To learn more about using the alternateResult parameter, be to check out this video.

  • When the absolute value of initial payment is small, the calculation likely fails to return a valid result.

  • Avoid including 0 values in payments. They will not impact the final result, and using 0 as initial payment will fail XIRR() calculation always.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.