Don't miss your chance to take exam DP-600 or DP-700 on us!
Request nowLearn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
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 workdays | 22 workdays | ||
| Name | Daily Hours | May Monthly Total | June Monthly Total |
| John | 3 | 63 | 66 |
| Sally | 5 | 105 | 110 |
| Pam | 6 | 126 | 132 |
| Dan | 5 | 105 | 110 |
Thank you!
Solved! Go to Solution.
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 } )
)
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 } )
)
Hi,
Share the input data table.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 51 | |
| 40 | |
| 37 | |
| 14 | |
| 14 |
| User | Count |
|---|---|
| 84 | |
| 71 | |
| 38 | |
| 29 | |
| 27 |