Skip to content

Commit 46323ef

Browse files
Merge pull request #636 from keshen-msft/patch-2
Clarify XIRR()
2 parents ec3ff26 + f8f23a5 commit 46323ef

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

query-languages/dax/xirr-function-dax.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Internal rate of return for the given inputs. If the calculation fails to return
3030

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

33-
$$\sum^{N}\_{j=1} \frac{P\_{j}}{(1 + \text{rate})^{\frac{d\_{j} - d\_{1}}{365}}}$$
33+
$$0=\sum^{N}\_{j=1} \frac{P\_{j}}{(1 + \text{rate})^{\frac{d\_{j} - d\_{1}}{365}}}$$
3434

3535
Where:
3636

@@ -43,6 +43,10 @@ Internal rate of return for the given inputs. If the calculation fails to return
4343
- 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.
4444

4545
- To learn more about using the alternateResult parameter, be to check out this [video](https://www.microsoft.com/videoplayer/embed/RWLzrC).
46+
47+
- When the absolute value of initial payment is small, the calculation likely fails to return a valid result.
48+
49+
- Avoid including 0 values in payments. They will not impact the final result, and using 0 as initial payment will fail XIRR() calculation always.
4650

4751
- [!INCLUDE [function-not-supported-in-directquery-mode](includes/function-not-supported-in-directquery-mode.md)]
4852

0 commit comments

Comments
 (0)