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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
electrobrit
Post Patron
Post Patron

daily amount converted to monthly amount based on number of workdays in any given month

I have daily target hours by person for a given month to put towards a project . 
I would like to add Dax to convert this daily amount to a monthly amount based on workdays in a month dynamically.
So if the daily amount is 3 hours, there are 21 days in May, the total for the month of May would be 63 for that person.
Can I somehow do this wth DAX?

 this is what I have (daily amt)(I need these monthly totals by person)
  21 workdays22 workdays
NameDaily HoursMay Monthly TotalJune Monthly Total
John36366
Sally5105110
Pam6126132
Dan5105110



Thank you!

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi,

Please check the below measure and the attached pbix file.

I suggest having a calendar table like the attached file.

I assumed the working day only excludes Sat. and Sun.

 

 

Monthly total: =
SUM ( Data[Daily Hours] )
    * COUNTROWS (
        CALCULATETABLE ( 'Calendar', NOT 'Calendar'[Day of Week] IN { 6, 7 } )
    )

 


 

    Microsoft MVP
 

 

   


      If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


   


     
        LinkedInVisit my LinkedIn page
     

   


   


     
        Outlook BookingSchedule a short Teams meeting to discuss your question

     

   


 


View solution in original post

3 REPLIES 3
electrobrit
Post Patron
Post Patron

@Jihwan_Kim perfect solution. Thank you for your time

Jihwan_Kim
Super User
Super User

Hi,

Please check the below measure and the attached pbix file.

I suggest having a calendar table like the attached file.

I assumed the working day only excludes Sat. and Sun.

 

 

Monthly total: =
SUM ( Data[Daily Hours] )
    * COUNTROWS (
        CALCULATETABLE ( 'Calendar', NOT 'Calendar'[Day of Week] IN { 6, 7 } )
    )

 


 

    Microsoft MVP
 

 

   


      If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


   


     
        LinkedInVisit my LinkedIn page
     

   


   


     
        Outlook BookingSchedule a short Teams meeting to discuss your question

     

   


 


Ashish_Mathur
Super User
Super User

Hi,

Share the input data table.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

May 2025 Monthly Update

Fabric Community Update - May 2025

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