Forum Discussion

LilMurph's avatar
LilMurph
Frequent Visitor
4 years ago
Solved

Generate a specific time when using Date function

Hi Everyone

 

I have created a column that provides the date of Thursday in Date/time format based on on the week number (given by another column [Week]) using the following formula:

Thursday = IF('Data'[Week]=1,date(2021,12,30), date(2022,1,((('Data'[Week])-1)*7)-1))
 
So if the [Week] column is 1 the date provided is 30/12/2021 00:00:00, if the [Week] column is 2 the date provided is 06/01/2022 00:00:00 and so on.
 
The problem is that I need the time to be 17:00:00 as this is the exact moment in the week that I need to refference as the cutoff point for staff submitting late timesheets. I have had a good goolge and tried a few things myself but I can't figure out how to specify a time. I tried concatinating a Date and a Time finction but that generates the Data type as Text and I need it to be in Date/time format. 
 
Any help would be greatly appriciated.
 
Cheers
LilMurph

1 Reply