Forum Discussion
AverageX not affecting calculation in Matrix
Hi all -
Attempting to find an average of CountDistinct values over a period of time (including 0 where no record was recorded).
Here is my calculation for Distinct activity by employee, by week:
I've tried to leverage the following DAX to find the Average over X period of time [including 0 based on this article] :
Unfortunately, my martix view is not recognizing the AverageX command and summed totals are showing, instead of Averages for each employee etc. (0s are popualating as intended):
As the title suggests, how can I get the AverageX to reflect each row of employee over time. My final expecation for this matrix is to ultimately remove the WeekEnd Column and have my KPIs aggregate accordingly.
1 Reply
- amitchandakSuper User
aplask105 , Try like
Averagex(summarycolumn, calculate([@cntD])
If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.