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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

how to calculate FTE

Hi I have a workagreement table where is start date ,end date, mode of employment and expected workhours. If employment mode is full time the FTE is 1. If it is parttime then it it amount of hours divided by 37.5 hours.

 

At firs tough I need to filter startdate <= today, enddate >= today OR Blank. I just can't get this right.

 

I have tried something like
FTE= IF(EmplMode = "parttime", calculate(weeklyhours/37.5), enddate >=today() || BLANK() && startdate <=today, IF(...

 

IDStartdateEnddateEmplModeweekhoursFTE
 1.1.2022 Fulltime37.51
 2.1.202215.9.2022Parttime250,66
 3.1.20221.6.2022Fulltime37.5filtered out due to end date
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

Please have a try!

Create a column.

Column =
VAR _a = 'Table'[weekhours] / 37.5
RETURN
    IF (
        'Table'[EmplMode] = "Fulltime"
            && 'Table'[Enddate] >= TODAY ()
            || 'Table'[Enddate] = BLANK (),
        "1",
        IF (
            'Table'[Enddate] <= TODAY (),
            "filtered out due to end date",
            IF ( 'Table'[EmplMode] = "Parttime", FORMAT ( _a, "" ), BLANK () )
        )
    )

vpollymsft_0-1655791665280.png

 

If I have misunderstood your meaning, please provide more details with youe desired output.

Best Regards

Community Support Team _ Polly

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Hi @Anonymous ,

Please have a try!

Create a column.

Column =
VAR _a = 'Table'[weekhours] / 37.5
RETURN
    IF (
        'Table'[EmplMode] = "Fulltime"
            && 'Table'[Enddate] >= TODAY ()
            || 'Table'[Enddate] = BLANK (),
        "1",
        IF (
            'Table'[Enddate] <= TODAY (),
            "filtered out due to end date",
            IF ( 'Table'[EmplMode] = "Parttime", FORMAT ( _a, "" ), BLANK () )
        )
    )

vpollymsft_0-1655791665280.png

 

If I have misunderstood your meaning, please provide more details with youe desired output.

Best Regards

Community Support Team _ Polly

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Anonymous
Not applicable

@Anonymous  works like a charm :). thousand thanks for your help 🙂

YukiK
Impactful Individual
Impactful Individual

This may do it!

FTE Measure = 
VAR __Today = TODAY() 
VAR __WeekHrs = SELECTEDVALUE('Table'[weekhours])
VAR __EmpMode = SELECTEDVALUE('Table'[EmplMode])
VAR __StartDate = SELECTEDVALUE('Table'[Startdate])
VAR __EndDate = SELECTEDVALUE('Table'[Enddate])
VAR __Fulltime = 
SWITCH( 
    TRUE(),
    ISBLANK(__EndDate), 1,
    __EndDate < __Today, "	filtered out due to end date"
)
VAR __Parttime =
DIVIDE( __WeekHrs, 37.5 )

VAR __FTE = 
SWITCH( 
    TRUE(),
    __EmpMode = "Fulltime", __Fulltime,
    __EmpMode = "Parttime", __Parttime
)

RETURN 

__FTE

YukiK_0-1655588913697.png

 

Anonymous
Not applicable

Hi @YukiK and thanks :). This is close but for some reason I'm getting only the __parttime as a result and I need a sum of those FTE's. Also seems that End date <today not filtering. (Picture below Osa-aikainen stands for the "Parttime" in Finnish)

hemuli75_1-1655708213879.png

the table I'm working on has these values, so the FTE should be 9,67

hemuli75_2-1655708442781.png

 

YukiK
Impactful Individual
Impactful Individual

Are those dates categorized as date? We need to make sure that's in place. Otherwise, if you could again list the conditions, I can try to see what might be wrong! 🙂

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors