Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi,
I'm looking for a calculation to perform a task that would give me a number of working days for each employee. Below is the sample data
| Emp name | Created Date | Monday | Tuesday | Wednesday | Thursday | Friday | Saturday | Sunday | Working Days |
| Emp1 | 4/13/2022 13:05 | 0 | 0 | 8 | 8 | 8 | 8 | 8 | |
| Emp2 | 4/13/2022 13:05 | 8 | 8 | 8 | 8 | 8 | 0 | 0 | |
| Emp3 | 4/13/2022 13:05 | 5 | 5 | 5 | 5 | 5 | 0 | 0 | |
| Emp4 | 4/13/2022 13:05 | 6 | 6 | 6 | 6 | 6 | 0 | 0 | |
| Emp5 | 4/13/2022 13:05 | 8 | 8 | 0 | 8 | 8 | 0 | 8 | |
| Emp6 | 4/13/2022 13:05 | 0 | 7 | 7 | 7 | 7 | 7 | 0 | |
| Emp7 | 4/13/2022 13:05 | 4 | 4 | 4 | 0 | 0 | 0 | 4 | |
| Emp8 | 4/13/2022 13:05 | 0 | 8 | 0 | 0 | 8 | 8 | 0 | |
| Emp9 | 4/13/2022 13:05 | 7.5 | 7.5 | 7.5 | 7.5 | 7.5 | 0 | 0 |
I've tried using different formulas but I couldn't get the right number.
I'd need to count the numbers by eliminating "0" from the count.
Solved! Go to Solution.
@Anonymous , a new column like
if([Monday]>0,1,0) + if([Tuesday]>0,1,0) + if([Wednesday]>0,1,0) + if([Thursday]>0,1,0) + if([Friday]>0,1,0) + if([Saturday]>0,1,0) + if([Sunday]>0,1,0)
Another way is to unpivot the weekday's column
https://radacad.com/pivot-and-unpivot-with-power-bi
@Anonymous , a new column like
if([Monday]>0,1,0) + if([Tuesday]>0,1,0) + if([Wednesday]>0,1,0) + if([Thursday]>0,1,0) + if([Friday]>0,1,0) + if([Saturday]>0,1,0) + if([Sunday]>0,1,0)
Another way is to unpivot the weekday's column
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 58 | |
| 45 | |
| 42 | |
| 21 | |
| 18 |
| User | Count |
|---|---|
| 172 | |
| 107 | |
| 92 | |
| 54 | |
| 46 |