Forum Discussion
Anonymous
3 years agoNot applicable
Calculate time per day based between two dates
Hi All, I am a bit stuck in my process. I got a data set what shows me a start date & end date and the expected hours that I would spend on a taks. Now I want to know how much time I would ...
Anonymous
3 years agoNot applicable
amitchandak thanks for your help and response. It partly helped.
The only issue that I still have it that is counting all the days. For us Saturday and Sunday is a weekend day and not a working day. So need to exclude them.
Below you can see the Measure that I have used.
Hours Per Working day = CALCULATE(
SUMX(
SUMMARIZE(
filter(
CROSSJOIN('Ticket','Calendar Table'),
'Calendar Table'[Date] >= 'Ticket'[Start Date] &&
'Calendar Table'[Date]<= 'Ticket'[End Date])
, 'Ticket'[Number]
, 'Calendar Table'[Date]
, 'Ticket'[Budget Hours]
, 'Ticket'[Start Date]
, 'Ticket'[End Date])
, DIVIDE('Ticket'[Budget Hours]
,DATEDIFF ('Ticket'[Start Date],
'Ticketing Tool''Ticket'[End Date],day)
+1)
)
)