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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
bunny18
Helper I
Helper I

How to get networking days

I am trying to calculate the defect turn around time i.e created date - resolved date and I need to consider only networking days.

Can see the option in excel, but cant figure it out in BI. Request help. I have the pbix in the below location.

 

https://drive.google.com/file/d/1cUAs6a8plrgNYjYrwVTr5D0rT7V9fVyW/view?usp=sharing

 

1 ACCEPTED SOLUTION
V-lianl-msft
Community Support
Community Support

Hi @bunny18 ,

 

Create a relationship between table "Date Table" and table "Defect TAT", and then create a weekday column in table "Date Table".

 

weekday = WEEKDAY('Date Table'[Date],2)

TAT_NETWORKING = 
CALCULATE(
    COUNTROWS ( 'Date Table'),
    DATESBETWEEN ( 'Date Table'[Date].[Date],  'Defect TAT'[Created Date], 'Defect TAT'[Resolved month]-1 ),
    'Date Table'[weekday] >= 1&&'Date Table'[weekday]<=5,
    ALL ( 'Defect TAT' )
)+0

 

 

How to get networking days.PNG

V-lianl-msft_0-1603967552568.png

 

 

Best Regards,
Liang
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
V-lianl-msft
Community Support
Community Support

Hi @bunny18 ,

 

Create a relationship between table "Date Table" and table "Defect TAT", and then create a weekday column in table "Date Table".

 

weekday = WEEKDAY('Date Table'[Date],2)

TAT_NETWORKING = 
CALCULATE(
    COUNTROWS ( 'Date Table'),
    DATESBETWEEN ( 'Date Table'[Date].[Date],  'Defect TAT'[Created Date], 'Defect TAT'[Resolved month]-1 ),
    'Date Table'[weekday] >= 1&&'Date Table'[weekday]<=5,
    ALL ( 'Defect TAT' )
)+0

 

 

How to get networking days.PNG

V-lianl-msft_0-1603967552568.png

 

 

Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@bunny18 , On the attached file check - Working Day Diff

also check

https://www.sqlbi.com/articles/counting-working-days-in-dax/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.