Forum Discussion
bunny18
Helper I
5 years agoHow 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 ...
- 5 years ago
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' ) )+0Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
V-lianl-msft
Community Support
5 years agoHi 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
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.