Date Calculation for Formula Checkbox field

  • 0
  • 1
  • Question
  • Updated 2 years ago
  • Answered
I am trying to build out a To-Do app, and I want to sort by Tasks that have a due date within 7 days of the current date.  My idea was to create a Formula-Checkbox field with an if/then statement that would check itself if it met the criteria, and then set the report to sort by checked/not checked.  But I can't figure out what formula would let me do this.  Thoughts?
Photo of Brandon Porter

Brandon Porter

  • 160 Points 100 badge 2x thumb

Posted 2 years ago

  • 0
  • 1
Here is a formula

IF(Today()-[Due Date] <= Days(7), "Due within 7 Days", "Not Due within 7 Days")
Photo of Matthew Neil

Matthew Neil

  • 31,698 Points 20k badge 2x thumb
I'd recommend using the filters and grouping options to actually key off the 'Date' rather than a yes/no checkbox.

If gives the user a better experience to have it sorted by dates, and then grouped by weeks (thus your 7 day windows).  Acts as a better 'priority' based to-do list.