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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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