cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
PoweBI Member
Member

CALCULATE(IFERROR(AVERAGE giving error

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")

1 ACCEPTED SOLUTION

Accepted Solutions
AlexisOlson Member
Member

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"
)
2 REPLIES 2
AlexisOlson Member
Member

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"
)
PoweBI Member
Member

Re: CALCULATE(IFERROR(AVERAGE giving error

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

Helpful resources

Announcements
Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Summit North America

Power Platform Summit North America

Register by September 5 to save $200

Virtual Launch Event

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Users Online
Currently online: 165 members 1,851 guests
Please welcome our newest community members: