Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
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!
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!