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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I have a measure which gives a total of working days (it takes the possible working days in a month and subtracts any holiday or sickness etc.
Thanks for reaching out to us.
Could you please share some sample data and its expected output? Thanks.
If you are not sure what to share, you can refer to a post I encountered before. The problem description in this post is very detailed.
Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
Hi there.
This formula worked well - but it doesn't give any totals for anyone who has not had any days off.
Working days = Sumx(summarize(Leave, Leave[Emp], 'Dates'[Month]), ('Dates'[working days])-CALCULATE(SUM(Leave[days off])))
My 'date' table has a column showing if a day is a 'working day' or holiday'.
My 'leave' table only has rows when leave has been taken - in a column showing a number.
i think because the leave table only shows leave dates - the formula does not work?
I get a result that looks like this (where lines like Baker should total 13, but are blank):
@gingerclaire , Based on the column in visual
Working days = Sumx(summarize(Leave, Leave[Emp], 'Dates'[Month]), ('Dates'[working days])-CALCULATE(SUM(Leave[days off])))
Also, refer https://www.youtube.com/watch?v=ufHOOLdi_jk
I think i have this working BUT:
For those who have null in the 'Leave[days off]' column, their total is also null.
Is there a way to fix this please?
Thank you - could you tell me what these yellow bits are please and what they relate to (and what they do) as they arent in my original? I would love to understand more.
Working days = Sumx(summarize(Leave, Leave[Emp], 'Dates'[Month]), ('Dates'[working days])-CALCULATE(SUM(Leave[days off])))
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 |
|---|---|
| 10 | |
| 10 | |
| 8 | |
| 6 | |
| 6 |
| User | Count |
|---|---|
| 24 | |
| 19 | |
| 18 | |
| 15 | |
| 9 |