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 a table of data with a 'CreatedOn' date column, I currently use a slicer to filter the report by those dates.
I'd like to get the number of working days between those two dates.
I've found some examples of this question previously, but they seem to have two columns of dates (i.e. start date | end date) so don't really match what I'm trying to do.
Can somebody point me in the right direction for this please?
Hi @barryjarvis,
You could look into using the min and max functions with the datediff function.
Measure = var weekends = COUNTROWS(FILTER(Query1, Query1[isWorkingDay] = False())) var totaldays = DATEDIFF(min(Query1[Date]), max(Query1[Date]), DAY) return totaldays - weekends
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 |
---|---|
107 | |
94 | |
77 | |
63 | |
50 |
User | Count |
---|---|
147 | |
106 | |
104 | |
87 | |
61 |