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.
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!
Solved! Go to Solution.
@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] ))
)
))
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?
@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] ))
)
))
Works perfect.
Thank you so much!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
99 | |
82 | |
70 | |
60 |
User | Count |
---|---|
149 | |
114 | |
107 | |
89 | |
67 |