Forum Discussion
Anonymous
8 years agoNot applicable
Calculate Average issue
Hi, I am trying to get the average of each product and showing a card, like(picture 2). By using Average, it gives me a wrong answer because the there are many rows of records with value =0, w...
- 8 years ago
Hmm. Perhaps make it a Measure, rather than a calculated column?
wwhittenton
8 years agoHelper II
If it's as simple as averaging a single column of data, you should be able to do this:
Avg Product= CALCULATE( AVERAGE(TableName[ProductCount]), FILTER(TableName, TableName[ProductCount] <> 0 ))
Anonymous
8 years agoNot applicable
Thanks for your suggestion.
I tried and still give me the same answer. Not sure if it calculate all rows of the data set.
I have filter to show only 2017 months and I want to get the average for the reported months.
- wwhittenton8 years agoHelper II
Hmm. Perhaps make it a Measure, rather than a calculated column?