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 have the following calculated column that works well but I'm having issues also trying to filter out weekends and holidays from a date table
Any ideas?
# Days since Updated = IF(OR(
'Cases'[State]="Open",
'Cases'[State]="Awaiting Info" ||
'Cases'[State]= "Work in Progress" ||
'Cases'[State]= "New"),
(Today()-'CS Cases'[Updated])
I would also like to filter out weekends and holidays using a date table and have these 2 fields
Can you share your .pbix file (load it to dropbox and post a link here)?
Give something like this a try. It counts the days between the start and end after taking out weekends and holidays.
# Days since Updated =
VAR _StartDate = 'CS Cases'[Updated]
VAR _EndDate = TODAY ()
RETURN
IF ('Cases'[State] IN { "Open", "Awaiting Info", "Work in Progress", "New" },
CALCULATE (
COUNTROWS ( Date ),
DATESBETWEEN ( Date[Date], _StartDate, _EndDate ),
'Date'[Business_Day] = 1 && 'Date'[Holiday_Flag] = 0
) - 1
)
You would add this as your calculated column.
Thank you but now I'm getting an invalid numberic representation of a date value was encounted
Any ideas?
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 |
---|---|
114 | |
100 | |
81 | |
70 | |
62 |
User | Count |
---|---|
148 | |
116 | |
104 | |
90 | |
65 |