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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
I would like to achieve a measure to calculate an average of employee count based on the dates that are pulled in. For example, using the screen shot below, for Dec 22 the calculation would be =AVG(SUM(2285+2328),2).....2 in the equation is the count if current period and previous period.
the Jan 2023 denominator would be 3 and so forth.
I need the formula to be adaptable for any range of periods.
Solved! Go to Solution.
1-In your DateTable, Create a calculated column as below:
1-In your DateTable, Create a calculated column as below:
Hi! Thank you for the quick response, the YEAR & MONTH functions are not allowing me to select a table[column], only measures. Am I doing something wrong?
I think your are putting it in a measure so it is the reason.
Create it as a calculated column. Then it would be OKay.
Okay figure that out. These are my results. The second image are the numbers I am trying to get to...
Did you put latest version of my measure?
It includes variables.
Yes! I have updated the measure and I am getting all sorts of errors...
It is because you do not have set any name for your measure.
MeasureName=
My Formula
Yikes! Rookie here. 🙂 It worked! That is awesome! One last thing do you know why the Index would be duplicating like this:
Should not be like that.
Send your formula. Is it set on "Don't be summarized" option?
Discard figured it out! Thank you so much for your help!
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.