Forum Discussion
naomi_j
6 years agoFrequent Visitor
Calculate working hours between two dates
I'm trying to calculate the number of working hours/minutes between two dates (ie. excluding non-working hours and weekends). This is the basic format - and I'm trying to find out how long it t...
Greg_Deckler
6 years agoCommunity Champion
See if these help:
https://community.powerbi.com/t5/Quick-Measures-Gallery/Net-Work-Days/m-p/367362#M109
https://community.powerbi.com/t5/Quick-Measures-Gallery/Hour-Breakdown/m-p/625085#M306
naomi_j
6 years agoFrequent Visitor
Thanks Greg - it seems the Net Work Days option should be close to what I want. Although I will have the same issue as the other user who commented in the thread (start and finish times potentially occurring out of work hours). Was there a solution for avoiding the negative numbers?
Thanks again!
- v-chuncz-msft6 years agoCommunity Support
You may calculate working hours/minutes since Mon, Feb 24, 2020.
DIFF ( <Base>, <Resolved> ) - DIFF ( <Base>, <Created> )- naomi_j6 years agoFrequent Visitor
Thanks for your response, v-chuncz-msft. I've not seen this option - are there any articles to explain the function?
What would be the <Base> value here?