Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Juggernaut

Calculating priority based on date

Featured Replies

Hi everyone,

I've been working in web development for a while and away from FileMaker, and now that I need to use it I find that I'm VERY rusty! I appreciate any help that you can provide.

I want to set up a field that automatically calculates a priority list based on an entered due date. For instance, if the due date is today or tomorrow, the priority would be Very High. If the due date is the day after tomorrow, the priority would be High. The day after that would be medium, and anything after that would be low. I also want it to only count weekdays, if that's possible. Can anyone help?

Thank you SO much!!!! Very best,

TigerGirl

In FMP 6 and earlier the calculation (unstored) would be:

Case(DueDate

Choose(Min(Max(

Int((DueDate - Status(CurrentDate))/7) * 5 +

 If(DayofWeek(DueDate) < DayofWeek(Status(CurrentDate)),Min(5, DayofWeek(DueDate) - 1) +

 Max(0, 6-DayofWeek(Status(CurrentDate))),If(DayofWeek(Status(CurrentDate)) < 7,

 Min(6,DayofWeek(DueDate)) - DayofWeek(Status(CurrentDate)), 0))

-1,0),3),

"Very High","High","Medium","Low")

)

For FMP7 and later, change the commas to semicolons, and change Status(CurrentDate) to Get(CurrentDate)

Edited by Guest

  • Author

Thanks so much, Bob!! I'll try it when I get to work on Monday.

Blessings~

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.