Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register 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.
User | Count |
---|---|
18 | |
12 | |
10 | |
10 | |
6 |
User | Count |
---|---|
23 | |
21 | |
20 | |
14 | |
10 |