Forum Discussion
How to Calculate Monthly Average for KPI Visual Target
- Anonymous2 years ago
Hi samratpbi ,thanks for the quick reply, I'll add further.
Hi Seyi38 ,
The measure I've created don't appear to be null for the moment.
The Table data is shown below:
Please follow these steps:
1. Use the following DAX expression to create a measureMonthly Average = VAR _a = CALCULATE(COUNTROWS(SUMMARIZE('Table',[Year],[Month])),ALL('Table')) VAR _b = CALCULATE(SUM('Table'[Value]),ALL('Table')) RETURN DIVIDE(_b,_a)2.Final output
Best Regards,
Wenbin Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi samratpbi ,thanks for the quick reply, I'll add further.
Hi Seyi38 ,
The measure I've created don't appear to be null for the moment.
The Table data is shown below:
Please follow these steps:
1. Use the following DAX expression to create a measure
Monthly Average =
VAR _a = CALCULATE(COUNTROWS(SUMMARIZE('Table',[Year],[Month])),ALL('Table'))
VAR _b = CALCULATE(SUM('Table'[Value]),ALL('Table'))
RETURN DIVIDE(_b,_a)
2.Final output
Best Regards,
Wenbin Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
This works. Thank you! Will let you know if any issues come up. I hope it won't though