Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
I am getting an error "Argument '2' in IFERROR function is required.
I know that but I am not sure what 2nd argument to list as I thought I had built the formula correctly.
Hi @Anonymous
Because DIVIDE captures *almost* all possible errors, I'm wondering why you even need IFERROR (or ISERROR).
IF you need IFERROR for some reason, the following hopefully shows what you need.
% of Stores with void =
IF(
HASONEVALUE( DTRData[Item] ),
IFERROR(
DIVIDE(
SUM( 'DTRData'[Void Count] ),
[Total Store Count],
0
),
??? // Replace this with the expression you want calculated when the above expression would raise an error.
),
IFERROR(
DIVIDE(
SUM( 'DTRData'[Void Count] ),
AVERAGEX(
DTRData,
[All Items All Stores Selling]
),
0
),
??? // Replace this with the expression you want calculated when the above expression would raise an error.
)
)
If you want an example of ISERROR, let me know.
Grant
If the first argument would raise an error, it is replaced by the second argument.
| User | Count |
|---|---|
| 23 | |
| 22 | |
| 20 | |
| 20 | |
| 12 |
| User | Count |
|---|---|
| 62 | |
| 55 | |
| 47 | |
| 44 | |
| 37 |