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 August 31st. Request your voucher.

Reply
Anonymous
Not applicable

how to calculate two dates difference considering Friday off.

i need to calculate datedifference between two dates considering friday off.  As i used formula for delay is


"" delay = DATEDIFF(Sheet1[forecasted finish],Sheet1[baseline Finish],DAY)   """

 

which is showing -149 day, is there any way i can make friday off and it will show numbers considering holiday


baseline Finish   forecasted finish     delay

20 June 202416 November 2024-149
1 ACCEPTED SOLUTION
FreemanZ
Super User
Super User

Hi @Anonymous ,

 

try like:

 
delay = 
VAR _gap = DATEDIFF(Sheet1[forecasted finish],Sheet1[baseline Finish],DAY)
VAR _fri = INT(DIVIDE(_gap, 7))
RETURN _gap - _fri

View solution in original post

1 REPLY 1
FreemanZ
Super User
Super User

Hi @Anonymous ,

 

try like:

 
delay = 
VAR _gap = DATEDIFF(Sheet1[forecasted finish],Sheet1[baseline Finish],DAY)
VAR _fri = INT(DIVIDE(_gap, 7))
RETURN _gap - _fri

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Users online (1,625)