Forum Discussion

Jotad710's avatar
Jotad710
Microsoft Employee
6 years ago
Solved

DateDiff without weekends

Hi team.

 

I'm using the DATEDIFF function to get the difference between two dates in hours (simple enough) like this 

 

DATEDIFF('Table1 (3)'[(Date1)].[Date],'(Date2)].[Date],HOUR)

 

I only need to exclude Saturday and Sunday. If the date is one of those days, it should be set to Monday 7am.

 

Can you help me on this?

3 Replies