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.
Hi,
I need to calculate several TATs for my report, but only having number of business days in those TATs.
For example, I have a CASE OPEN date and a CASE CLOSE date, I need to calculate the CASE TAT being a Datediff between them, but returning only business days.
I already have a Date table with all dates marked as "weekday" and "weekend", holidays included.
Is there a way to somehow apply a filter to Datediff, or use any other function(s) to have the desired result?
I don't need a total of working days, I need number of days between certain dates to track the service event (opened to part order, part delivery to repair, repair to closure - all in nuber of working days between those dates).
please help, thanks!
Hi @Ilona , try this measure:
Business Days from Part Delivery to Repair Date =
VAR vStartDate =
MAX ( ServiceEvent[Part Delivery Date] )
VAR vEndDate =
MAX ( ServiceEvent[Repair Date] )
VAR vBusinessDays =
FILTER (
'Date',
'Date'[Date] >= vStartDate
&& 'Date'[Date] <= vEndDate
&& 'Date'[Is Business Day] = "Y"
)
VAR vResult =
COUNTROWS ( vBusinessDays )
RETURN
vResult
This solution requires the column 'Date'[Is Business Day].
Proud to be a Super User!
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 | |
100 | |
78 | |
76 | |
52 |
User | Count |
---|---|
144 | |
109 | |
108 | |
88 | |
61 |