The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi.
I have a tabel "Start Stop" where i have start and end dates for each employee. Same employee can start and stop more times.
I have a date tabel and a employee tabel with relations.
I want to calculate the total working days for a month and want to calculate the working days under considiration of start and end date and a slicser, where i filter on dates.
Can anyone help?
Working_Days= var max = Maxx(Allselected(Date), Date[Date])
var min = Minx(allselected(Date), Date[Date])
return
Networkdays(max(min ,[Start Date]), Max(max, [End Date]),1)
Tray a measure like
Working days
var _max = maxx(allselected(Date), Date[Date])
var _min = Minx(allselected(Date), Date[Date])
return
NETWORKDAYS(max(_min ,[Start Date]), Max(_max, [Stop Date]),1)
Business day with and without using DAX Function NETWORKDAYS: https://www.youtube.com/watch?v=Qs03ZZXXE_c
Hi and thank you for your reply.
I have made this formula:
User | Count |
---|---|
15 | |
13 | |
9 | |
6 | |
6 |
User | Count |
---|---|
28 | |
18 | |
13 | |
9 | |
5 |