cancel
Showing results for
Did you mean:

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Helper I

## Calculate average FTE 2020

Hi All,

I like to calculate the average FTE per month for 2020.
I already calculate the FTE per month with this DAX:

Count FTE =

CALCULATE(

SUM( 'Dim - employees'[FTE] ) ,

FILTER(

VALUES( 'Dim - employees '[date hired] ) , 'Dim - employees '[date hired] <= MAX( 'Dim - time'[Day] )) ,

FILTER(

VALUES( 'Dim - employees'[date leave] ) , OR( 'Dim - employees'[date leave]>= MIN( 'Dim - time'[Day] ) , ISBLANK( 'Dim - employees'[date leave] ))

But what I now like to know is; what is the average FTE 2020 until September 2020.

I tried to solve this with DAX; Average but then it just calculate the unique FTE for the whole year.

Thank you!

1 ACCEPTED SOLUTION
Super User

@Danny-Happy , Try like this and divide my month

Count FTE =
sumx(Values('Dim - time'[Month Year])
CALCULATE(
SUM( 'Dim - employees'[FTE] ) ,
FILTER('Dim - employees '[date hired] , 'Dim - employees '[date hired] <= MAX( 'Dim - time'[Day] )) ,
FILTER('Dim - employees'[date leave] , OR( 'Dim - employees'[date leave]>= MIN( 'Dim - time'[Day] ) , ISBLANK( 'Dim - employees'[date leave] ))
)
))

3 REPLIES 3
Helper I

This is really useful, I am getting an error when using the first calculation for determining actual FTE over months = A circular dependency was detected: PBIPND_vwPosition_Private[SUM of FTE], PBIPND_vwPosition_Private[Column], PBIPND_vwPosition_Private[SUM of FTE].

Any suggestions would be greatly appreciated?

Super User

@Danny-Happy , Try like this and divide my month

Count FTE =
sumx(Values('Dim - time'[Month Year])
CALCULATE(
SUM( 'Dim - employees'[FTE] ) ,
FILTER('Dim - employees '[date hired] , 'Dim - employees '[date hired] <= MAX( 'Dim - time'[Day] )) ,
FILTER('Dim - employees'[date leave] , OR( 'Dim - employees'[date leave]>= MIN( 'Dim - time'[Day] ) , ISBLANK( 'Dim - employees'[date leave] ))
)
))

Helper I

Works perfect.

Thank you so much!

Announcements

#### Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

#### Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

#### Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors