Forum Discussion
dcs136
Advocate I
10 years agoCalculate Date and Time difference considering the weekends and workhours
Hi everybody! I'm still learning how to use Power BI, I search for this everywhere but I didn't found an answer! Here is the thing, I need to calculate the difference between dates and tim...
RicardoAlfa
8 years agoFrequent Visitor
I have been working with this code, but is possible agree a new column to limit the TimeFrom date, and it can considering to the final result in hours
For example:
| TimeFrom | TimeTo |
| 01/01/2018 07:00 | 01/01/2018 10:00 |
My Result is 3 hours, but it should be 2 hours, considering the business hours in the day 08:00 am to 18:00 pm, May be I must agree a column like the LastDayStartTime, but using the First Star Time.
Some Insight?
Thanks!
hmedinaa
8 years agoFrequent Visitor
I have the same issue, wondering if we are missing a FirstDayStartTime, if the starting time is before 8am (7:00:00AM) and finish time is 10:00:00 AM is giving me has result the regular time diff, = 3hrs