Skip to content

Commit f8f23a5

Browse files
authored
Clarify XIRR()
1 parent dfeb4f1 commit f8f23a5

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
@@ -39,7 +39,7 @@ Internal rate of return for the given inputs. If the calculation fails to return
3939

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

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

4444
Where:
4545

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

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

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

0 commit comments

Comments
 (0)