Forum Discussion
curtismob
5 years agoHelper IV
Exclude Blank Measure Values From Average Calculation
Hello, I am looking for some direction on excluding blank measure values from my average cost per square foot calculation. I am not using AVERAGE, because I have to do the cost per sqft calculation ...
Ashish_Mathur
5 years agoSuper User
Hi,
In my version of the file, the average is 25.28. That seems correct. Drag the other 2 measures to the visual and export the data to MS Excel. Add the Total cost and Total Area column and divide the 2. The result will be 25.28.
curtismob
5 years agoHelper IV
Please recall my original post:
_mAvg Cost Per SQFT per Product =
CALCULATE(DIVIDE(DIVIDE('CostPerSqft'[_mCost Per SQFT],'CostPerSqft'[_mDistinctCount YYYMM], 0), DISTINCTCOUNT('CostPerSqft'[Product]), 0))
Unfortunately, your solution does not take into account the separate Products.
- Ashish_Mathur5 years agoSuper User
It does. Please recheck.
- curtismob5 years agoHelper IV
Thanks for your efforts on this.