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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
yakovlol
Resolver I
Resolver I

HELP Calculate Average without Zero values based on measure

Hello Team,
Could you please help me with creating a measure?
I need to Calculate the Average for (No group) ignoring zeros. The values for the second column are based on another measure [Count Month]. So I need to ignore zeros but to leave them in the matrix. 

 

 

 

Average CountMonths = 
AVERAGEX(VALUES(Table1[id]),[Count Months])

 

 

My matrix with the current calculation

yakovlol_0-1689192769100.png

Desired output to have 2 for "No group", but 0 should stay where they are

yakovlol_1-1689192313208.png

 

Many thanks for you help

1 REPLY 1
Anonymous
Not applicable

Hi @yakovlol,

Can you please share a pbix or some dummy data that keep the raw data structure with expected results? It should help us clarify your scenario and test to coding formula.

How to Get Your Question Answered Quickly  

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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