Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi, I have a measure that sums the data year to date. I'm now looking to have an average year to date. This is my formula, is there anything I can do here to average instead of sum? Thanks very much.
Solved! Go to Solution.
Hi @ashsandwich ,
I think you can use AVERAGE function. Here is the changed DAX codes.
YTD Average =
CALCULATE (
AVERAGE ( data[Headcount Count Calc] ),
DATESYTD ( data[Extract Date] )
)
If you want to learn more about AVERAGE function. I think you can read this document: AVERAGE function (DAX) - DAX | Microsoft Learn
Best Regards
Yilong Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @ashsandwich ,
I think you can use AVERAGE function. Here is the changed DAX codes.
YTD Average =
CALCULATE (
AVERAGE ( data[Headcount Count Calc] ),
DATESYTD ( data[Extract Date] )
)
If you want to learn more about AVERAGE function. I think you can read this document: AVERAGE function (DAX) - DAX | Microsoft Learn
Best Regards
Yilong Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.