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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Killingworth
Regular Visitor

Working Days

I have two tables

 

1. With raw data of interactions broken down by date

 

2. Date table with all dates of the year with an indicator if the day is a working day or not.

 

I have a measure which gives me the number of working days in each month but how do I get the number of working days worked to the current date

 

i.e this month to date they have been 9 workings days

1 ACCEPTED SOLUTION

@Killingworth 

 

please try this

THISMONTHWORKDAY = 
CALCULATE(COUNTROWS('DATE'),FILTER('DATE','DATE'[Date]<=TODAY()&&'DATE'[WORKDAY2]="WEEKDAY"))

 





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

Proud to be a Super User!




View solution in original post

5 REPLIES 5
ryan_mayu
Super User
Super User

@Killingworth 

 

It will be better that you share your measure and the sample data.

 

1.PNG

THISMONTHWORKDAY = 
VAR mth=MONTH(TODAY())
VAR yr=YEAR(today())
RETURN CALCULATE(COUNTROWS('DATE'),FILTER('DATE',YEAR('DATE'[Date])=yr&& MONTH('DATE'[Date])=mth&&'DATE'[Date]<=TODAY()&&'DATE'[WORKDAY2]="WEEKDAY"))

Since my local time is about 1 am, my workday is 10 for this month.

2.PNG





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

Proud to be a Super User!




That gives me the number of working days complete in the current month but if I filter the data for previous months it doesn't give the amount of working days complete in the filtered month ?

@Killingworth 

 

please try this

THISMONTHWORKDAY = 
CALCULATE(COUNTROWS('DATE'),FILTER('DATE','DATE'[Date]<=TODAY()&&'DATE'[WORKDAY2]="WEEKDAY"))

 





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

Proud to be a Super User!




That worked thanks for your help

amitchandak
Super User
Super User

@Killingworth , Refer this how to get working dates between 2 dates. Make one of the date as today.

 

Refer 2nd page

https://www.dropbox.com/s/y47ah38sr157l7t/Order_delivery_date_diff.pbix?dl=0

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors