Forum Discussion
Anonymous
4 years agoNot applicable
Calculate average using month instead total count
Hi , I am trying to get Month differnce values based total value average . when i created average dax measure after that applied in table . getting error. i have attached sample PBI file ...
- 4 years ago
Hi Anonymous
Try this,
DAX code:
test1 = var _totalEachYear= CALCULATE( SUM(Sheet1[Actuals]),ALLEXCEPT(Sheet1,Sheet1[Year])) return IF(SUM(Sheet1[Actuals])>0,DIVIDE(_totalEachYear,12))Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
amitchandak
4 years agoSuper User
Anonymous , Try a measure like
CALCULATE(averageX(summarize(Sheet1, Sheet1[Year],Sheet1[Month], "_1", SUM(Sheet1[Actuals]),FILTER(Sheet1,Sheet1[Year]="2020")) ), [_1])