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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
RossP96
Helper I
Helper I

Trying to Count Number of Work Days in CURRENT Month

Hi,

 

I have a measure which works out the remaining work days left in the current month. I need to then divide this number by the total work days in the current month to work out % of the month left.

 

The remaining work days formula is:

 

CALCULATE(SUM('Date'[Workday]),
DATESBETWEEN('Date'[Date],
NOW(),
EOMONTH(NOW(),0)))

 

I need to re-create this formula, but replace NOW() with the start date of the current month. I'm struggling to work out how to find the start date of the current month in dax?

 

I won't be using any date filters on the page so it needs to be based on the current date.

 

Thanks 

1 ACCEPTED SOLUTION
jthomson
Solution Sage
Solution Sage

You're on the right line with EOMONTH, change the offset to -1 to get the last day of the previous month, then add 1

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

HI @RossP96 ,

You can try ot use following measure formula if it suitable for your requirement:

Measure =
VAR currDate =
    MAX ( Date[Date] )
RETURN
    CALCULATE (
        SUM ( 'Date'[Workday] ),
        FILTER (
            ALLSELECTED ( Date ),
            'Date'[Date]
                IN CALENDAR ( currDate, DATE ( YEAR ( currDate ), MONTH ( currDate ), 1 ) - 1 )
        )
    )

Notice: you can create a table visual with date fields and above measure.

If above not help, please share some sample data for test.

Regards,

Xiaoxin Sheng

jthomson
Solution Sage
Solution Sage

You're on the right line with EOMONTH, change the offset to -1 to get the last day of the previous month, then add 1

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors