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!View all the Fabric Data Days sessions on demand. View schedule
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/
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!