Forum Discussion
puj831
8 years agoFrequent Visitor
Calculating Averages with conditions
How can I take the average of Price with the condition that Volume > 0?
- 8 years ago
Maby Its depends of your Culture, try to use [ , ] instead of [ ; ] and try to count your
- 8 years ago
Try this
AveragePrice := AVERAGEX (FILTER(YourTableName, YourTableName[Volume] > 0), YourTableName[Price])
or thisAveragePrice := CALCULATE ( AVERAGE (YourTableName[Price] ), YourTableName[Volume] > 0 )