Forum Discussion
Petter120
Helper I
6 years agoIf time value is between two other time values
Hi i have a column that has a time value for example 10:05:22 (hh:nn:ss). I am trying to figure out how to use an if statement that tests if the time value is between 10:00:00 and 10:59:59 but i...
alena2k
Resolver IV
6 years agohi! if you can do it in power query then I would use conditional column:
= Table.AddColumn(#"Prev Table", "Flag", each if ([Time] > #time(10, 0, 0) and [Time] < #time(11, 0, 0)) then "Yes" else "No")
if it is indeed inside one our, there is Start of the Hour option:
= Table.AddColumn(#"Prev Table", "Flag", each if Time.StartOfHour([Time]) = #time(10, 0, 0) then "Yes" else "No")