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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

AverageX not consider 0 values

I need than this measure ignores zeros in the calculation: 

Promedio elasticidad Pbi MEJORADO = AVERAGEX(Filter( VALUES(Combinar1[Numero semana]) , [Filter Elasticidades Grandes] = "Si considerar" && [Elasticidad] <> 0 ) ,[Elasticidad]). 

Gustavo98_0-1660247892732.png

Elasticidad is a measure, Filter Elasticidades Grandes is a measure too. 

 

@amitchandak 

3 REPLIES 3
Anonymous
Not applicable

Hi @Anonymous ,

Please modify the formula.

Promedio elasticidad Pbi MEJORADO =
AVERAGEX (
    FILTER (
        ALL ( tablename ),
        [Filter Elasticidades Grandes] = "Si considerar"
            && [Elasticidad] <> 0
    ),
    [Elasticidad]
)

 

If I have misunderstood your meaning, please provide screenshoots with some sample data and your desired output.

 

Best Regards

Community Support Team _ Polly

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

i was able to exlude values of "elasticidad" when elasticidad is bigger than 100 in absolute value (creating a slicer to slice my "Elasticidad" measure using variables. but now i dont know how to deal with zeros in the calculation of my average.

Anonymous
Not applicable

bigger than 10**

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.