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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Calculating Number of Workdays for Each Month per day

Hi,

 

I have managed to calculate if the day is a working day or not, but I need another column for each transaction to show the number of working days. Instead of '1', I need it to calculate it as 23. For Example, 15th January 2018 in one column and the another column 23

PowerBI Community.PNGAny help will be greatly appreciated.

SJ

1 ACCEPTED SOLUTION
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

 

Calculated column.

WorkingDay = IF(WEEKDAY('Date table'[Date],2)<=5,1,0)

Measure.

count workingdays =
CALCULATE (
    SUM ( 'Date table'[WorkingDay] ),
    ALLEXCEPT (
        'Date table',
        'Date table'[Date].[Year],
        'Date table'[Date].[Month]
    )
)

1.PNG

 

Best regards,

Yuliana Gu

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

View solution in original post

2 REPLIES 2
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

 

Calculated column.

WorkingDay = IF(WEEKDAY('Date table'[Date],2)<=5,1,0)

Measure.

count workingdays =
CALCULATE (
    SUM ( 'Date table'[WorkingDay] ),
    ALLEXCEPT (
        'Date table',
        'Date table'[Date].[Year],
        'Date table'[Date].[Month]
    )
)

1.PNG

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Thank you very much! That is exactly what I needed!

Thank you,

 

SJ

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