Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Average calculation

Hi,

I hope you can help me. I want to calculate average FTE per month.

I have made the following example, but I cannot figure out how to calculate the FTE Avg. In February it should be based on the average of January and February ((250+247)/2) = 248,5

MonthActualYTDFTE Avg.
1     250,00     250,00     250,00
2-        3,00     247,00     248,50
3          4,00     251,00     249,33
4-        2,00     249,00     249,25
5-        3,00     246,00     248,60
6          5,00     251,00     249,00
7-        1,00     250,00     249,14
8               -       250,00     249,25
9-        3,00     247,00     249,00
10          4,00     251,00     249,20
11-        3,00     248,00     249,09
12-        3,00     245,00     248,75

 

I have tried 

FTE Avg = CALCULATE( 'ActualData'[Actual] , DATESYTD('Calendar'[Date])) / max('Calendar'[Month])
But it doesn't add January and February together.
5 REPLIES 5
Anonymous
Not applicable

@Greg_Deckler  @mahoneypat  @AllisonKennedy Thanks for your replies so far.

It seemed so self explaining for me, but I also have all the background.

I have now created an example.

https://1drv.ms/u/s!AvAYB6UZVhl7tju8Hi2xwXY2Uvai?e=762fNw

Thanks in advance

 

I looked at your pbix file.  The measure I suggested seems to be working correctly.  Are you still seeing an issue?

 

If this works for you, please mark it as the solution.  Kudos are appreciated too.  Please let me know if not.

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


AllisonKennedy
Community Champion
Community Champion

@Anonymous
Lots of good solutions posted for you already, but this blog does a great job of explaining the how and why of exactly what I think you're trying to do: https://blog.enterprisedna.co/calculate-a-year-to-date-ytd-monthly-moving-average-in-power-bi/

Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

mahoneypat
Microsoft Employee
Microsoft Employee

Please try this expression.

 

Avg FTE To Date =
VAR thismonth =
    MIN ( 'Calendar'[Month] )
RETURN
    CALCULATE (
        AVERAGEX (
            VALUES ( 'Calendar'[Month] ),
            CALCULATE ( SUM ( 'ActualData'[Actual] ) )
        ),
        ALL ( 'Calendar'[Month] ),
        'Calendar'[Month] <= thismonth
    )

 

If this works for you, please mark it as the solution.  Kudos are appreciated too.  Please let me know if not.

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Greg_Deckler
Community Champion
Community Champion

@Anonymous - 

FTE Avg Measure =
  VAR __Month = MAX('Table'[Month])
RETURN
  AVERAGEX(FILTER(ALL('Table'),[Month]<=__Month),[YTD])

Otherwise, Not really enough information to go on, please first check if your issue is a common issue listed here: https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882

Also, please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

The most important parts are:
1. Sample data as text, use the table tool in the editing bar
2. Expected output from sample data
3. Explanation in words of how to get from 1. to 2. 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.