Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Solved! Go to Solution.
Hi @Anonymous ,
You can create a calculated column as below in the table 'resource' to get the number of working days:
# Days ill =
CALCULATE (
COUNTROWS ( 'DimDatum' ),
FILTER ( 'DimDatum', 'DimDatum'[Is_Weekend] = "false" ),
DATESBETWEEN ( 'DimDatum'[Date], 'resource'[Start Date], 'resource'[End Date] )
)
If the above one can't help you get the desired result, please provide some raw data in your table 'resource' (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.
How to upload PBI in Community
Best Regards
Hi @Anonymous
Keen to know if you managed to solve this??
I have a similar issue where i'm calculating sickness absence per month based on start/end dates which span months. I've got a nice measure which works out the days someone is absent in each month, but it includes weekends and i can't work out how to exclude them!!
Like you i've also created a weekend true/false in my date table but can't work out how to filter against it using the sumx
Nightmare!
Try using this.
Sumx(filter(dimdate, 'dimdate'[isweekend] = "false");VALUES('Dimdate'[Date]))
Hi @Anonymous ,
You can create a calculated column as below in the table 'resource' to get the number of working days:
# Days ill =
CALCULATE (
COUNTROWS ( 'DimDatum' ),
FILTER ( 'DimDatum', 'DimDatum'[Is_Weekend] = "false" ),
DATESBETWEEN ( 'DimDatum'[Date], 'resource'[Start Date], 'resource'[End Date] )
)
If the above one can't help you get the desired result, please provide some raw data in your table 'resource' (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.
How to upload PBI in Community
Best Regards
Hi @Anonymous
Try by using NETWORKDAYS dax.
It will help you to exclude weekend between two dates.
NETWORKDAYS ( DATE ( 2022, 5, 28 ), DATE ( 2022, 5, 30 ), 1 )
Best Regards
Shreya
If my answer was helpful, please consider Accept it as the solution to help the other members find it
Click on the Thumbs-Up icon if you like this reply
Hi Shreyamukkawar,
I do have a column in my dimdate that shows me whether a day is a weekend day or a weekday, so thats not the problem. The problem is to add this value as a filltervalue in this part of the formula: SUMX(VALUES('Dimdate'[Date])
So i need to add something like ,filter(dimdate, 'dimdate'[isweekend] = "false"), but unfortenately thats not working.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
14 | |
10 | |
10 | |
9 | |
9 |
User | Count |
---|---|
19 | |
14 | |
13 | |
11 | |
8 |