Reply
Member
Posts: 87
Registered: ‎12-13-2018
Accepted Solution

CALCULATE(IFERROR(AVERAGE giving error

[ Edited ]

Hello Community,

i am trying to created a calculated column and i am getting below error. Does any one able provide suggestion?

Error Message “Too many arguments were passed to the IFERROR function. The maximum argument count for the function is 2.”

delete after use = CALCULATE(IFERROR(AVERAGE([Valid Price]),

                       FILTER(Software Contracts',[RAW Unique Identifier]=Software Contracts'[AUP Pricing Identifier]),

                       FILTER('Software Contracts',[RAW Region]= 'Software Contracts',[ AUP SALES)),"no")


Accepted Solutions
Member
Posts: 104
Registered: ‎08-16-2017

Re: CALCULATE(IFERROR(AVERAGE giving error

You've got all kinds of mismatching parenthesis and commas, but I think this might be closer to what you're after:

 

IFERROR (
    CALCULATE (
        AVERAGE ( [Valid Price] ),
        FILTER (
            'Software Contracts',
            [RAW Unique Identifier] = 'Software Contracts'[AUP Pricing Identifier]
        ),
        FILTER (
'Software Contracts',
[RAW Region] = 'Software Contracts'[ AUP SALES] 
)
    ),
    "no"
)

View solution in original post


All Replies
Member
Posts: 104
Registered: ‎08-16-2017

Re: CALCULATE(IFERROR(AVERAGE giving error

You've got all kinds of mismatching parenthesis and commas, but I think this might be closer to what you're after:

 

IFERROR (
    CALCULATE (
        AVERAGE ( [Valid Price] ),
        FILTER (
            'Software Contracts',
            [RAW Unique Identifier] = 'Software Contracts'[AUP Pricing Identifier]
        ),
        FILTER (
'Software Contracts',
[RAW Region] = 'Software Contracts'[ AUP SALES] 
)
    ),
    "no"
)
Member
Posts: 87
Registered: ‎12-13-2018

Re: CALCULATE(IFERROR(AVERAGE giving error

thank you so much Alexis.It works perfectly fine for me.