Forum Discussion
Average Excluding Zero's
- 6 years ago
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))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 ZhiIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
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))
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.