Date Calculation for Formula Checkbox field

  • 0
  • 1
  • Question
  • Updated 1 year 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 1 year ago

  • 0
  • 1
Photo of QuickBaseCoach App Dev./Training

QuickBaseCoach App Dev./Training, Champion

  • 65,280 Points 50k badge 2x thumb
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,678 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.