Forum Discussion

ShereeBrown's avatar
ShereeBrown
Qrew Cadet
6 years ago

Formula to check box based on duration result

I am trying to create a checkbox formula field [Time to Appt <=7 days] that would check the box IF the duration field[Time to Appt] is <=7 days. 

I have tried multiple formula variations and keep getting a syntax error message.  Specifically the operator  <= cant be used with durations.  I've tried to convert the duration to a number or text, but still can't get it to work.

example:
If([Time to Appt. (days)]<=7 days, true,false)

I would like to be able to use a dynamic filter for records that have a duration of 7 days or less. 
That is why I am creating a checkbox since dynamic filters cannot be duration fields.


Suggestions?

  • Thank you!! It works.  I hate to admit how much time I spent trying to figure this out.  I don't have any training in this, just trying to teach myself.  As always, I appreciate you help.