Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi
I have data as here:
Date | DayName | Expected Workday |
01.04.2022 | Friday | 1 |
02.04.2022 | Saturday | 1 |
03.04.2022 | Sunday | 1 |
04.04.2022 | Monday | 2 |
05.04.2022 | Tuesday | 3 |
06.04.2022 | Wednesday | 4 |
07.04.2022 | Thursday | 5 |
08.04.2022 | Friday | 6 |
09.04.2022 | Saturday | 6 |
10.04.2022 | Sunday | 6 |
How to calculate workday as above? It must be calculatef column for each months based on date. Saturday and Sunday doesn't working days, so I want to get earlier value (for Friday).
Please help me
Solved! Go to Solution.
Add a new column to your date table, Is Working Day, which returns 1 for Monday-Friday then you can add a new column to your table like
Working day in month =
CALCULATE( SUM('Date'[Is working day]), DATESMTD('Date'[Date]) )
@KVPro
You can create the calulated Column
Add a new column to your date table, Is Working Day, which returns 1 for Monday-Friday then you can add a new column to your table like
Working day in month =
CALCULATE( SUM('Date'[Is working day]), DATESMTD('Date'[Date]) )
OMGGG, I really really thank you. I've been struggling with this for almost a week
User | Count |
---|---|
98 | |
91 | |
84 | |
73 | |
67 |
User | Count |
---|---|
115 | |
102 | |
98 | |
71 | |
66 |