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
jepps
New Member

Average Excluding Zero's

I have a request to find the average days to certain stages in a process.  For example from beginning to end, whats the average number of days.  I have a formula that calculates the number of days (BELOW) and is working properly.  I have an issue when i try to calculate the average of the group for this formula.  It always includes 0.

 

DAYS TO CONCLUSION = IF('METRICS TAB'[SETTLED DATE].[Date] , 'METRICS TAB'[SETTLED DATE].[Date]-'METRICS TAB'[NewColumn.ASSIGNED].[Date],0)

 

Any Help????

1 ACCEPTED SOLUTION
dax
Community Support
Community Support

Hi @jepps,

In your scenario , did you want to exclude 0 rows when calculate average? If so, you could try to use below measure to see whether it work or not.

Measure 4 = CALCULATE(SUM(t4[amount]))/CALCULATE(COUNT(t4[name]), FILTER(t4, t4[amount]<>0))

570.PNG 

If this is not what you want, please correct me and inform me more detailed information(such as your expected output and your sample data)? Then I will help you more correctly.

Please do mask sensitive data before uploading.

Thanks for your understanding and support.
Best Regards,
Zoe Zhi

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
dax
Community Support
Community Support

Hi @jepps,

In your scenario , did you want to exclude 0 rows when calculate average? If so, you could try to use below measure to see whether it work or not.

Measure 4 = CALCULATE(SUM(t4[amount]))/CALCULATE(COUNT(t4[name]), FILTER(t4, t4[amount]<>0))

570.PNG 

If this is not what you want, please correct me and inform me more detailed information(such as your expected output and your sample data)? Then I will help you more correctly.

Please do mask sensitive data before uploading.

Thanks for your understanding and support.
Best Regards,
Zoe Zhi

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

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

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

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.