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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Nadaaa-1
New Member

Calculate SlA using power bI

Using power BI ..,,

If I have submit date and last modified date and need to calculate is the difference between them >72 hours then it's breached else within SLA 

, but I need to use only the workdays and please consider that the working hours are only 8 hours per day so I need to consider that 

How I can create it using power BI

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Nadaaa-1 ,

 

You can use the NETWORKDAYS() function, which specifies the weekend rest days, and you can check the results as follows:

vtianyichmsft_0-1713251036516.png

Hour = var _d = NETWORKDAYS(MAX('Table'[Star]),MAX('Table'[End]),2)
RETURN _d*8

 

Hope it helps!

 

Best regards,
Community Support Team_ Scott Chang

 

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

2 REPLIES 2
Anonymous
Not applicable

Hi @Nadaaa-1 ,

 

You can use the NETWORKDAYS() function, which specifies the weekend rest days, and you can check the results as follows:

vtianyichmsft_0-1713251036516.png

Hour = var _d = NETWORKDAYS(MAX('Table'[Star]),MAX('Table'[End]),2)
RETURN _d*8

 

Hope it helps!

 

Best regards,
Community Support Team_ Scott Chang

 

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

sergej_og
Super User
Super User

I would try to create a calculated column "workday" first (in your Date table) and define which days are workdays. Mark your days like this : 

WeekdayNumber = WEEKDAY ( 'Date'[Date] )


Stg like this;

xyz = IF ( 'Date'[WeekdayNumber] IN { 1, 7 },  0,  1 ) <-- it depends on which calender you use. Sunday = 1 or maybe  monday = 1?


Your working hours are already defined?

Pls try to apply this steps first. Just an idea

Regards

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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
Top Kudoed Authors