This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hi,
Hope someone can help!
I'm trying to get the number of calendar days in a month for each employee, but the sum of the column doesn't seem to work:
Instead of the sum, it jut shows the number of days available for one employee, not all.
Can anyone help me with my measure? The measure I have created can be seen on the screenshot above.
Thank you in advance!
Solved! Go to Solution.
Please try
Calendar Days UK =
SUMX (
VALUES ( 'Table'[EmpName] ),
CALCULATE (
COUNT ( 'Calendar'[Date] ),
'Calendar'[Weekday/Wknd] = "Weekday",
CROSSFILTER ( 'Calendar'[Date], 'Table'[Date], BOTH )
)
)
Please try
Calendar Days UK =
SUMX (
VALUES ( 'Table'[EmpName] ),
CALCULATE (
COUNT ( 'Calendar'[Date] ),
'Calendar'[Weekday/Wknd] = "Weekday",
CROSSFILTER ( 'Calendar'[Date], 'Table'[Date], BOTH )
)
)
Hi,
I am not sure how your data model looks like, but please try the below whether it suits your requirement.
Calendar Days UK =
CALCULATE (
COUNT ( 'Calendar'[Date] ),
FILTER ( ALL ( 'Calendar' ), 'Calendar'[Weekday/Wknd] = "Weekday" )
)
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 31 | |
| 25 | |
| 21 | |
| 18 | |
| 17 |
| User | Count |
|---|---|
| 61 | |
| 35 | |
| 33 | |
| 23 | |
| 23 |