>= giving odd results

[JobCreation] is a DateTime column. I’m trying to create a forumula for a slice.

TODAY()-DATE([JobCreation])=90

Works fine. As does <>. But what I really want is:

TODAY()-DATE([JobCreation])>=90

But this errors with
Arithmetic expression ‘((TODAY()-DATE([JobCreation])) >= 90)’ does not have valid input types

As does every other combination such as >, <, =< and <=. With the exception of => which errors with:

Expression ‘TODAY()-DATE([JobCreation])=>90’ could not be parsed due to exception: The given key was not present in the dictionary…

Brackets such as

(TODAY()-DATE([JobCreation]))>=90

makes no difference to the error

Can’t work out what I’m doing wrong

Solved Solved
1 4 69
1 ACCEPTED SOLUTION

The result is duration.
Try wraping with DAY() and then the <>= 90

Edit: Sorry, with HOUR() and then /24 to get the days

Edit 2: Just in case it’s not clear enough:

(HOUR(
  TODAY()-DATE([JobCreation])
)/24)>=90

View solution in original post

4 REPLIES 4

The result is duration.
Try wraping with DAY() and then the <>= 90

Edit: Sorry, with HOUR() and then /24 to get the days

Edit 2: Just in case it’s not clear enough:

(HOUR(
  TODAY()-DATE([JobCreation])
)/24)>=90

Aurelien
Google Developer Expert
Google Developer Expert

@SkrOYC good tip !

@1minManager The notions of TIME and DURATION and how to use in expressions

Alternatively, you can also use the following format: “00.00:00:00”, here you begin with 2 digits then a dot then 2 digits: 00.00 , this corresponds to days.hours:minutes:seconds.

TODAY()-DATE([JobCreation])>="90.00:00:00"

Didn’t know that post existed.
That’s a good one from @KJS

Sorry guys, Friday brain fade Formula for jobs older than 90day should be

TODAY()>=[JobCreation]+90 

Big thanks to @SkrOYC and @Aurelien for explaining

Top Labels in this Space