Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Adding up total workdays from a date filter

Hello,

 

I am trying to make a measure that would dynamically add up all of the values in my work day column using a date filters max and min values that I put into my report:

filt.png

Let say we have a date column called Date and we also have a calculated column called WorkDay which pretty much assigns a 1 if the date column values are a workday else 0. The first thing I tried was to sum up all of the values in the WorkDay between MAX and MIN of the Date column but was not successful.

 

Can someone please help with this problem I am having cause I have tried other stuff and I am stumped.

 

Thanks

3 REPLIES 3
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

 

How did you do it for now? This could be simple like below.

 

measure =
SUM ( 'DateTable'[IsWorkday] )

If you'd like to ignore the slicer, try this one.

 

 

measure =
CALCULATE (
    SUM ( 'DateTable'[IsWorkday] ),
    ALL ( 'DateTable'[cw_Dateofservice] )
)

 

Best Regards,
Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
PattemManohar
Community Champion
Community Champion

@Anonymous I'd recommed you this link to solve this.

 

https://community.powerbi.com/t5/Desktop/working-day-total-working-day-running-total/td-p/195077





Did I answer your question? Mark my post as a solution!

Proud to be a PBI Community Champion




Anonymous
Not applicable

@PattemManohar I don't have any trouble with finding working days at all but the problem is dynamically adding up the amount of workdays in between the date filter. I tried the methods in the post but things are still breaking and honestly I don't think the post is actually the answer to my problems. If I need to explain the problem better let me know.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.