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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
datadelta
Helper III
Helper III

How do I remove "zero" or null responses from my graph?

I have a data set that has a number of zeros and/or nulls as responses to questions.  When charting out the averages, I'm trying to eliminate the zeros from that average.  Despite having put the filter set to "greater than 0" they are still counted towards the average.

 

I've provided an image to show the April average is clearly not being calculated correctly due to it still counting zeros.

 

Thanks!

 

datadelta_0-1683205328238.png

 

1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi @datadelta 
Try to use this Dax formula for your measure

Avg percentage= CALCULATE( AVERAGE(TableName[your column]), FILTER(TableName, TableName[your column] <> 0 ))
Link to sample file 


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

View solution in original post

1 REPLY 1
Ritaf1983
Super User
Super User

Hi @datadelta 
Try to use this Dax formula for your measure

Avg percentage= CALCULATE( AVERAGE(TableName[your column]), FILTER(TableName, TableName[your column] <> 0 ))
Link to sample file 


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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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