Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Dear Team,
i have start and end date need to get SLA between dates consider only working days except public holidays dates.
Solved! Go to Solution.
Hi @Anonymous
Here is a sample file with the solution https://we.tl/t-YHm9uduPCj
Time Took (SLA) =
VAR StartDate = Data[Start date]
VAR EndDate = Data[End Date]
VAR T1 = CALENDAR ( StartDate, EndDate )
VAR T2 = FILTER ( T1, NOT ( WEEKDAY ( [Date], 2 ) IN { 6, 7 } ) )
VAR NumberOfDays = COUNTROWS ( T2 )
VAR TimeDifference = TIMEVALUE ( EndDate - StartDate )
VAR NumberOfHours = HOUR ( TimeDifference )
VAR NumberOfMinutes = MINUTE ( TimeDifference )
VAR NumberOfSeconds = SECOND ( TimeDifference )
RETURN
NumberOfDays & " Day(s) " & NumberOfHours & " H " & NumberOfMinutes & " M " & NumberOfSeconds & " S"
Hi @Anonymous
Here is a sample file with the solution https://we.tl/t-YHm9uduPCj
Time Took (SLA) =
VAR StartDate = Data[Start date]
VAR EndDate = Data[End Date]
VAR T1 = CALENDAR ( StartDate, EndDate )
VAR T2 = FILTER ( T1, NOT ( WEEKDAY ( [Date], 2 ) IN { 6, 7 } ) )
VAR NumberOfDays = COUNTROWS ( T2 )
VAR TimeDifference = TIMEVALUE ( EndDate - StartDate )
VAR NumberOfHours = HOUR ( TimeDifference )
VAR NumberOfMinutes = MINUTE ( TimeDifference )
VAR NumberOfSeconds = SECOND ( TimeDifference )
RETURN
NumberOfDays & " Day(s) " & NumberOfHours & " H " & NumberOfMinutes & " M " & NumberOfSeconds & " S"
@Anonymous , refer if this business hour blog can help
https://exceleratorbi.com.au/calculating-business-hours-using-dax/
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 43 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 47 |