Forum Discussion
Average count in each month
- 3 years ago
hi Anonymous
I overlooked the filter context, try like:
measure = DIVIDE( COUNTROWS( FILTER( ALL(data), data[Month]<=MAX(data[Month]) ) ), MAX(data[Month]) )tried with your original dataset, it worked like:
hi Anonymous
try to plot a visual with month column and a measure like:
Thank you FreemanZ
I tried it with my real data, and this result is still not correct.
(The data type for month column is text right now)
The result from Power BI -
I think it is because the number in each month is divided by the number of month instead of the sum number.
- FreemanZ3 years agoSuper User
hi Anonymous
could you update your sample dataset to better reflect your case?
- Anonymous3 years agoNot applicable
Sure, my data looks like this, I have around 15k+ employees in each month.
And this the expected result is in red box.
- FreemanZ3 years agoSuper User
hi Anonymous
I overlooked the filter context, try like:
measure = DIVIDE( COUNTROWS( FILTER( ALL(data), data[Month]<=MAX(data[Month]) ) ), MAX(data[Month]) )tried with your original dataset, it worked like: