The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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 |
---|---|
28 | |
10 | |
8 | |
6 | |
5 |
User | Count |
---|---|
33 | |
13 | |
12 | |
9 | |
7 |