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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Hamdan1234
Helper III
Helper III

Dax to count working days per month (Saturday & Sundays is week off)

How to calculate Dax to count working days per month (Saturday & Sundays is week off). Need urgent help.

gdfgdfgdfg.PNG

1 ACCEPTED SOLUTION
PhilipTreacy
Super User
Super User

Hi @Hamdan1234 

To count working days you can use a Date Table that contains a column that indicates if a date is a working day or not.  You then count the workign days between 2 dates, see this articlke for code and explanation

Counting working days in DAX - SQLBI

You question isn't clear on how you want to calculate the amount of working days.  You've supplied an image of a table of data so are you hoping to calculate working days between 2 specific dates related to that data, or do you just want to know the number of working days in each month?

Regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


View solution in original post

1 REPLY 1
PhilipTreacy
Super User
Super User

Hi @Hamdan1234 

To count working days you can use a Date Table that contains a column that indicates if a date is a working day or not.  You then count the workign days between 2 dates, see this articlke for code and explanation

Counting working days in DAX - SQLBI

You question isn't clear on how you want to calculate the amount of working days.  You've supplied an image of a table of data so are you hoping to calculate working days between 2 specific dates related to that data, or do you just want to know the number of working days in each month?

Regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.