Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Anonymous
Not applicable

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
AlexisOlson
Super User
Super User

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

2 REPLIES 2
AlexisOlson
Super User
Super User

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"
)
Anonymous
Not applicable

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

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.