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

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.

Reply
Anonymous
Not applicable

Running Total of working days

Hello BI-Community,

 

i´m struggling to get a running total of working days. 

I have a Date Table that is already filtered based on working days. So only dates, which are a working date, are visible.

I even have a specific column in my date table that shows a 1 if it is a working date.

 

Let´s say we take todays date, i need the following result.

 

Unbenannt.PNG

 

 

Anyonw who knows how to solve this???

2 ACCEPTED SOLUTIONS

Try replacing

MIN('Date table'[Datum])

with

CALCULATE( MIN('Date table'[Datum]), ALLSELECTED('Date table'))

View solution in original post

Anonymous
Not applicable

I just figured it out with a little bit of a workaround!

I tried to replace the measures like you mentioned before, but see attached the results.

 

Pre Rolling Working Days = COUNTROWS(FILTER('Date Table','Date Table'[Datum] < TODAY()&&'Date Table'[Working Day]=1))

 

Pre Rolling Working Days MTD =
TOTALMTD([Pre Rolling Working Days], 'Date Table'[Datum])


Thank you very much for your response anyway! It was the needed push to get the right result


Unbenannt.PNG

View solution in original post

6 REPLIES 6
johnt75
Super User
Super User

I think this should do it

Running total working days =
VAR startDate =
    MIN ( 'Date'[Date] )
VAR endDate =
    MAX ( 'Date'[Date] )
VAR result =
    CALCULATE (
        SUM ( 'Date'[Is working day] ),
        DATESBETWEEN ( 'Date'[Date], startDate, endDate )
    )
RETURN
    result
Anonymous
Not applicable

Thanks for your Reply johnt75!

Unfortunatel it dowsn´t work with my file 😞

On the visual are you using the date column from your date table, or are you using a column from another table ? The way I had envisaged this working is that you would use the date column from your date table which would be set up with a one-to-many relationship to any other tables

Anonymous
Not applicable

Iam using my date table to set up a slicer and everything else.

See attached the result from your measure. It doesn´t count them properly...

Unbenannt.PNG

Try replacing

MIN('Date table'[Datum])

with

CALCULATE( MIN('Date table'[Datum]), ALLSELECTED('Date table'))
Anonymous
Not applicable

I just figured it out with a little bit of a workaround!

I tried to replace the measures like you mentioned before, but see attached the results.

 

Pre Rolling Working Days = COUNTROWS(FILTER('Date Table','Date Table'[Datum] < TODAY()&&'Date Table'[Working Day]=1))

 

Pre Rolling Working Days MTD =
TOTALMTD([Pre Rolling Working Days], 'Date Table'[Datum])


Thank you very much for your response anyway! It was the needed push to get the right result


Unbenannt.PNG

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.