Forum Discussion
Anonymous
10 years agoNot applicable
Average excluding zero's
How would I write a formula that gives me the average sales but excludes any instances when the sales are zero.
- 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 ))
Anonymous
10 years agoNot applicable
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 ))
dosansil
8 years agoHelper I
Good solution. I'm so grateful! Thank you very much!