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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
v4anand18
Advocate I
Advocate I

Biz Days in a month calculation

Hello friends,

 

 

I am new to Power BI. I need help in calculating the "Number of Business Days in a Month" and "Business Days Passed in a Month" as a measure. I tried the below formula for "Biz Days in a Mth" but i get a wrong value. For eg. the no of business days in May is 22 and with the below mentioned formula i get 20.75 days. I already have a calculated column "Business Days per Month" My data looks like this

 

Biz days.PNG

 

 

I need these measures to calculate an estimate. Please help 

1 ACCEPTED SOLUTION
v-yuezhe-msft
Employee
Employee

@v4anand18,

What field would you like to drag to the visual with the measure? You can use DAX below to calculate "Number of Business Days in a Month" measure, when you drag Month and this measure to a table visual, the measure should return your expected result.

Number of Business Days in a Month = SUM('Business Days 2018'[IS BusinessDay])




Regards,
Lydia

Community Support Team _ Lydia Zhang
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-yuezhe-msft
Employee
Employee

@v4anand18,

What field would you like to drag to the visual with the measure? You can use DAX below to calculate "Number of Business Days in a Month" measure, when you drag Month and this measure to a table visual, the measure should return your expected result.

Number of Business Days in a Month = SUM('Business Days 2018'[IS BusinessDay])




Regards,
Lydia

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

Thanks Lydia. I used the DAX formula you posted.

 

It works. 

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.