Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago

IFERROR Error

I am getting an error "Argument '2' in IFERROR function is required.

 

 

% of Stores with void =
IF(
    HASONEVALUE(DTRData[Item]),
        IFERROR(DIVIDE(
            SUM('DTRData'[Void Count]),
                [Total Store Count],0),
        IFERROR(DIVIDE(
            SUM('DTRData'[Void Count]),
                AVERAGEX(DTRData,[All Items All Stores Selling]),0),
   
)))
 
Any thoughts for correcting?

5 Replies

    • Anonymous's avatar
      Anonymous
      Not applicable

      grantsamborn 

       

      I know that but I am not sure what 2nd argument to list as I thought I had built the formula correctly.

      • grantsamborn's avatar
        grantsamborn
        Solution Sage

        If the first argument would raise an error, it is replaced by the second argument.