Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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
Solved! Go to Solution.
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
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
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
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@bunny18 , On the attached file check - Working Day Diff
also check
https://www.sqlbi.com/articles/counting-working-days-in-dax/
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
99 | |
80 | |
70 | |
59 |
User | Count |
---|---|
149 | |
114 | |
107 | |
89 | |
67 |