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
ApurvaKhatri
Helper III
Helper III

XIRR function cannot find solution

Hi, 

 

I am trying to use XIRR function but I keep getting the error.

Capture.PNG

NumberCostDateQuarter
1004-007-51449.711/13/20212014Q2
1004-007-51449.711/20/20212014Q2
1004-007-51449.711/27/20212014Q2
1004-007-51449.712/4/20212014Q2
1004-007-51449.712/11/20212014Q2
1004-007-51449.712/18/20212014Q2
1004-007-51449.712/25/20212014Q2
1004-007-51449.71/1/20222014Q2
1004-007-51449.71/8/20222014Q2
1004-007-51449.71/15/20222014Q2
1004-007-51449.71/22/20222014Q2
1004-007-51449.71/29/20222014Q2
1004-007-51449.72/5/20222014Q2
1004-007-51449.72/12/20222014Q2
1004-008-51592.36/9/20182014Q2
1004-008-51592.36/16/20182014Q2
1004-008-51592.36/23/20182014Q2
1004-008-51592.36/30/20182014Q2
1004-008-51592.37/7/20182014Q2
1004-008-51592.37/14/20182014Q2
1004-008-51592.37/21/20182014Q2
1004-008-51592.37/28/20182014Q2
1004-008-51592.38/4/20182014Q2
1004-008-51592.38/11/20182014Q2
1004-008-51592.38/18/20182014Q2
1004-008-51592.38/25/20182014Q2
1004-008-51592.39/1/20182014Q2
1004-008-51592.39/8/20182014Q2
1004-008-51592.39/15/20182014Q2
1004-008-51592.39/22/20182014Q2
1004-008-51592.39/29/20182014Q2
1004-008-51592.310/6/20182014Q2
1004-008-51592.310/13/20182014Q2
1004-008-51592.310/20/20182014Q2
1004-008-51592.310/27/20182014Q2
1004-008-51592.311/3/20182014Q2
1004-008-51592.311/10/20182014Q2
1004-008-51592.311/17/20182014Q2
1004-008-51592.311/24/20182014Q2
1004-008-51592.312/1/20182014Q2
1004-008-51592.312/8/20182014Q2
1004-008-51592.312/15/20182014Q2
1004-008-51592.312/22/20182014Q2
1004-008-51592.312/29/20182014Q2
1004-008-51592.31/5/20192014Q2
1004-008-51592.31/12/20192014Q2
1004-008-51592.31/19/20192014Q2
1004-008-51592.31/26/20192014Q2
1004-008-51592.32/2/20192014Q2
1004-008-51592.32/9/20192014Q2
1004-008-51592.32/16/20192014Q2
1004-008-51592.32/23/20192014Q2
1004-008-51592.33/2/20192014Q2
1004-008-51592.33/9/20192014Q2
1004-008-51592.33/16/20192014Q2
1004-008-51592.33/23/20192014Q2
1004-008-51592.33/30/20192014Q2
1004-008-51592.34/6/20192014Q2
1004-008-51592.34/13/20192014Q2
1004-008-51592.34/20/20192014Q2
1004-008-51592.34/27/20192014Q2
1004-008-51592.35/4/20192014Q2
1004-008-51592.35/11/20192014Q2
1004-008-51592.35/18/20192014Q2
1004-008-51592.35/25/20192014Q2
1004-008-51592.36/1/20192014Q2
1004-008-51592.36/8/20192014Q2
1004-008-51592.36/15/20192014Q2
1004-008-51592.36/22/20192014Q2
1004-008-51592.36/29/20192014Q2
1004-008-51592.37/6/20192014Q2
1004-008-51592.37/13/20192014Q2
1004-008-51592.37/20/20192014Q2
1004-008-51592.37/27/20192014Q2
1004-008-51592.38/3/20192014Q2
1004-008-51592.38/10/20192014Q2
1004-008-51592.38/17/20192014Q2
1004-008-51592.38/24/20192014Q2
1004-008-51592.38/31/20192014Q2
1004-008-51592.39/7/20192014Q2
1004-008-51592.39/14/20192014Q2
1004-008-51592.39/21/20192014Q2
1004-008-51592.39/28/20192014Q2
1004-008-51592.310/5/20192014Q2
1004-008-51592.310/12/20192014Q2
1004-008-51592.310/19/20192014Q2
1004-008-51592.310/26/20192014Q2
1004-008-51592.311/2/20192014Q2
1004-008-51592.311/9/20192014Q2
1004-008-51592.311/16/20192014Q2
1004-008-51592.311/23/20192014Q2
1004-008-51592.311/30/20192014Q2
1004-008-51592.312/7/20192014Q2
1004-008-51592.312/14/20192014Q2
1004-008-51592.312/21/20192014Q2
1004-008-51592.312/28/20192014Q2
1004-008-51592.31/4/20202014Q2
1004-008-51592.31/11/20202014Q2
1004-008-51592.31/18/20202014Q2
1004-008-51592.31/25/20202014Q2
1004-008-51592.32/1/20202014Q2
1004-008-51592.32/8/20202014Q2
1004-008-51592.32/15/20202014Q2
1004-008-51592.32/22/20202014Q2
1004-008-51592.32/29/20202014Q2
1004-008-51592.33/7/20202014Q2
1004-008-51592.33/14/20202014Q2
1004-008-51592.33/21/20202014Q2
1004-008-51592.33/28/20202014Q2
1004-008-51592.34/4/20202014Q2
1004-008-51592.34/11/20202014Q2
1004-008-51592.34/18/20202014Q2
1004-008-51592.34/25/20202014Q2
1004-008-51592.35/2/20202014Q2
1004-008-51592.35/9/20202014Q2
1004-008-51592.35/16/20202014Q2
1004-008-51592.35/23/20202014Q2
1004-008-51592.35/30/20202014Q2
1004-008-51592.36/6/20202014Q2
1004-008-51592.36/13/20202014Q2
1004-008-51592.36/20/20202014Q2
1004-008-51592.36/27/20202014Q2
1004-008-51592.37/4/20202014Q2
1004-008-51592.37/11/20202014Q2
1004-008-51592.37/18/20202014Q2
1004-008-51592.37/25/20202014Q2
1004-008-51592.38/1/20202014Q2
1004-008-51592.38/8/20202014Q2
1004-008-51592.38/15/20202014Q2
1004-008-51592.38/22/20202014Q2
1004-008-51592.38/29/20202014Q2
1004-008-51592.39/5/20202014Q2
1004-008-51592.39/12/20202014Q2
1004-008-51592.39/19/20202014Q2
1004-008-51592.39/26/20202014Q2
1004-008-51592.310/3/20202014Q2
1004-008-51592.310/10/20202014Q2
1004-008-51592.310/17/20202014Q2
1004-008-51592.310/24/20202014Q2
1004-008-51592.310/31/20202014Q2
1004-008-51592.311/7/20202014Q2
1004-008-51592.311/14/20202014Q2
1004-008-51592.311/21/20202014Q2
1004-008-51592.311/28/20202014Q2
1004-008-51592.312/5/20202014Q2
1004-008-51592.312/12/20202014Q2
1004-008-51592.312/19/20202014Q2
1004-008-51592.312/26/20202014Q2
1004-008-51592.31/2/20212014Q2
1004-008-51592.31/9/20212014Q2
1004-008-51592.31/16/20212014Q2
1004-008-51592.31/23/20212014Q2
1004-008-51592.31/30/20212014Q2
1004-008-51592.32/6/20212014Q2
1004-008-51592.32/13/20212014Q2
1004-008-51592.32/20/20212014Q2
1004-008-51592.32/27/20212014Q2
1004-008-51592.33/6/20212014Q2
1004-008-51592.33/13/20212014Q2
1004-008-51592.33/20/20212014Q2
1004-008-51592.33/27/20212014Q2
1004-008-51592.34/3/20212014Q2
1004-008-51592.34/10/20212014Q2
1004-008-51592.34/17/20212014Q2
1004-008-51592.34/24/20212014Q2
1004-008-51592.35/1/20212014Q2
1004-008-51592.35/8/20212014Q2
1004-008-51592.35/15/20212014Q2
1004-008-51592.35/22/20212014Q2
1004-008-51592.35/29/20212014Q2
1004-008-51592.36/5/20212014Q2
1004-008-51592.36/12/20212014Q2
1004-008-51592.36/19/20212014Q2
1004-008-51592.36/26/20212014Q2
1004-008-51592.37/3/20212014Q2
1004-008-51592.37/10/20212014Q2
1004-008-51592.37/17/20212014Q2
1004-008-51592.37/24/20212014Q2
1004-008-51592.37/31/20212014Q2
1004-008-51592.38/7/20212014Q2
1004-008-51592.38/14/20212014Q2
1004-008-51592.38/21/20212014Q2
1004-008-51592.38/28/20212014Q2
1004-008-51592.39/4/20212014Q2
1004-008-51592.39/11/20212014Q2
1004-008-51592.39/18/20212014Q2
1004-008-51592.39/25/20212014Q2
1004-008-51592.310/2/20212014Q2
1004-008-51592.310/9/20212014Q2
1004-008-51592.310/16/20212014Q2
1004-008-51592.310/23/20212014Q2
1004-008-51592.310/30/20212014Q2
1004-008-51592.311/6/20212014Q2
1004-008-51592.311/13/20212014Q2
1004-008-51592.311/20/20212014Q2
1004-008-51592.311/27/20212014Q2
1004-008-51592.312/4/20212014Q2
1004-008-51592.312/11/20212014Q2
1004-008-51592.312/18/20212014Q2
1004-008-51592.312/25/20212014Q2

 

 

The formula is : XIRR(Tablename, cost, Date). I keep getting the error.

 

1 ACCEPTED SOLUTION
ChrisMendoza
Resident Rockstar
Resident Rockstar

I realize this is a sample however, XIRR Function (DAX) states:

 

Return Value

Internal rate of return for the given inputs. If the calculation fails to return a valid result, an error is returned.

 

as well as the following:

 

Remarks

The value is calculated as the rate that satisfies the following function:

 

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

 

Does your data meet must contain at least one positive number and one negative number?

 

I added another row with 100,000 in your sample set and it produced a value in the measure.






Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

Proud to be a Super User!



View solution in original post

3 REPLIES 3
ChrisMendoza
Resident Rockstar
Resident Rockstar

I realize this is a sample however, XIRR Function (DAX) states:

 

Return Value

Internal rate of return for the given inputs. If the calculation fails to return a valid result, an error is returned.

 

as well as the following:

 

Remarks

The value is calculated as the rate that satisfies the following function:

 

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

 

Does your data meet must contain at least one positive number and one negative number?

 

I added another row with 100,000 in your sample set and it produced a value in the measure.






Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

Proud to be a Super User!



Anonymous
Not applicable

I keep getting the same error for my data, could you please help me get the XIRR value? Here is my sample data. I do not understand why the XIRR function is not working on this data set. Also, just want to know if XIRR function is optimized for direct query? According to the optimized dax functions list for direct query, XIRR is not listed in there. Can you please confirm this?

 

Thank you very much for your help,

 

MonthCashflow
9/1/20150
10/1/20152530756
11/1/20152710211
12/1/20152979793
1/1/20162527118
2/1/20162796499
3/1/20162614789
4/1/20162777616
5/1/20162676319
6/1/20162994484
7/1/20162482082
8/1/20162703377
9/1/20162833793
10/1/20162518664
11/1/20162659052
12/1/20162690785
1/1/20172431973
2/1/20172646933
3/1/20172278861
4/1/20172323329
5/1/20172338517
6/1/20172537406
7/1/20172283102
8/1/20172317830
9/1/20172279586
10/1/20172393647
11/1/20172491507
12/1/20172041174
1/1/20182225666
2/1/20182377273
3/1/20181961357
4/1/20182095609
5/1/20182065100
6/1/20182144858
7/1/20182063577
8/1/20182233725
9/1/20182049687
10/1/20182021182
11/1/20182012237
12/1/20182134861
1/1/20192018427
2/1/20191997118
3/1/20191824474
4/1/20192026753
5/1/20192042240
6/1/20191779184
7/1/20192027999
8/1/20192030078
9/1/20191734192
10/1/20191871081
11/1/20192020876
12/1/20191821809
1/1/20202110641
2/1/20201582513
3/1/20201666309
4/1/20201961726
5/1/20201636368
6/1/20201607873
7/1/20201561124
8/1/20201512438
9/1/20201462936
10/1/20201419186
11/1/20201381266
12/1/20201375718
1/1/20211371869
2/1/20211368332
3/1/20211364890
4/1/20211361034
5/1/20211357726
6/1/20211354761
7/1/20211352805
8/1/20211351168
9/1/20211318704
10/1/20211317577
11/1/20211316801
12/1/20211263470
1/1/20221263078
2/1/20221262628
3/1/20221155687
4/1/20221154458
5/1/20221153272
6/1/20221005599
7/1/20221003438
8/1/20221001239
9/1/2022802456.5
10/1/2022799104.1
11/1/2022795512.8
12/1/2022434482.4
1/1/2023425285.9
2/1/2023415978.1
3/1/2023155253
4/1/2023143833.5
5/1/2023132329.9
6/1/2023-284073
7/1/2023-297435
8/1/2023-310741
9/1/2023-444419
10/1/2023-460857
11/1/2023-477247
12/1/2023-650332
1/1/2024-1024136
2/1/2024-1253589
3/1/2024-941283
4/1/2024-954679
5/1/2024-968061
6/1/2024-662988
7/1/2024-675013
8/1/2024-686819
9/1/2024-348419
10/1/2024-358869
11/1/2024-369370
12/1/2024-145120
1/1/2025-154294
2/1/2025-163296
3/1/202540036.85
4/1/202531953.25
5/1/202523256.5
6/1/2025109458
7/1/2025100499.8
8/1/202591586.33
9/1/2025233011.1
10/1/2025224952.6
11/1/2025216932.7
12/1/2025278887
1/1/2026271376.7
2/1/2026263904.4
3/1/2026326778.9
4/1/2026319776.2
5/1/2026312808.2
6/1/2026348197.5
7/1/2026341560.2
8/1/2026334955.9
9/1/2026381111.7
10/1/2026374866
11/1/2026368651.8
12/1/2026403539.5
1/1/2027397643.9
2/1/2027391775.4
3/1/2027443003.7
4/1/2027437506.6
5/1/2027432036.3
6/1/2027460488.1
7/1/2027455279.1
8/1/2027450097
9/1/2027475544.6
10/1/2027470597.5
11/1/2027465674.2
12/1/2027481523
1/1/2028475077.7
2/1/2028468669.5
3/1/2028486045.6

Thanks alot @ChrisMendoza.!!!!  I will try

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.