Forum Discussion
Average excluding zero's
- Anonymous10 years ago
Assuming this is a simple average of rows of sale data, and not an average of another measure that aggregates sales in some other way...
Avg Sales= CALCULATE( AVERAGE(TableName[SaleAmount]), FILTER(TableName, TableName[SaleAmount] <> 0 ))
Assuming this is a simple average of rows of sale data, and not an average of another measure that aggregates sales in some other way...
Avg Sales= CALCULATE( AVERAGE(TableName[SaleAmount]), FILTER(TableName, TableName[SaleAmount] <> 0 ))
- Anonymous10 years agoNot applicable
Perfect...thx!
- dosansil8 years agoHelper I
Good solution. I'm so grateful! Thank you very much!
- Anonymous8 years agoNot applicable
Thanks, just needed this code
- mluanacruz3 years agoHelper I
Hi Anonymous,
I am looking for something very similar, but I want the average of the "Ratio_Measure" excluding the highest and lowest number. Do you think you can help me?
Here is a sample of my data on excel as well as the Power BI dashboard with my measures
Here!!