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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Diogo_Ferreira
New Member

AVERAGEIFS in Power BI

Hello Guys,

I need to run the excel FUNCTION AVERAGEIFS in Power BI.
I've tried AVAREGE, AVAREGEX, but i haven't had any success.

The data below the function is followed.

Measure =
AVERAGEIFS(
'Registros'[D],
'Registros'[Situação Fornecedor CA] <> "Não Contabilizar",
'Registros'[Último Movimento] = "Sim",
'Registros'[Cancelado] <> "Sim",
'Registros'[Categoria_Maior] <> "Solicitações de serviço",
'Registros'[Categoria_Maior <> Demandas Internas"
)

Diogo_Ferreira_0-1673326365778.png

Tks

Big Hug's

1 ACCEPTED SOLUTION
FreemanZ
Super User
Super User

hi @Diogo_Ferreira 

 

In addition to vicky's solution, you may also try to write a measure like this:

Measure =
AVERAGEX(
    FILTER(
    'Registros',
    'Registros'[Situação Fornecedor CA] <> "Não Contabilizar"
        &&'Registros'[Último Movimento] = "Sim"
        &&'Registros'[Cancelado] <> "Sim"
        &&'Registros'[Categoria_Maior] <> "Solicitações de serviço"
        &&'Registros'[Categoria_Maior <> Demandas Internas"
    ),
    'Registros'[D]
)

View solution in original post

3 REPLIES 3
Diogo_Ferreira
New Member

Thank you very much, guys.
Big Hug

FreemanZ
Super User
Super User

hi @Diogo_Ferreira 

 

In addition to vicky's solution, you may also try to write a measure like this:

Measure =
AVERAGEX(
    FILTER(
    'Registros',
    'Registros'[Situação Fornecedor CA] <> "Não Contabilizar"
        &&'Registros'[Último Movimento] = "Sim"
        &&'Registros'[Cancelado] <> "Sim"
        &&'Registros'[Categoria_Maior] <> "Solicitações de serviço"
        &&'Registros'[Categoria_Maior <> Demandas Internas"
    ),
    'Registros'[D]
)
vicky_
Super User
Super User

You will need to use the CALCULATE function with a filter on the Registros table. Try a something like: 

 

Measure =
CALCULATE(
    AVERAGE('Registros'[D]),
    'Registros'[Situação Fornecedor CA] <> "Não Contabilizar",
    'Registros'[Último Movimento] = "Sim",
    'Registros'[Cancelado] <> "Sim",
    'Registros'[Categoria_Maior] <> "Solicitações de serviço",
    'Registros'[Categoria_Maior <> Demandas Internas"
)

 

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.