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.

Featured Replies

Hi All,

I have a customer table that has a relationship to a sales order

table based upon customer ID. I am trying to create a calculation

field that would flag the customer as being in the top five customers

of all total sales. Not sure if this makes sense but I have included

my sample file anyway. Anyone have any ideas?

Thanks

-T

FMP 10 Advanced PC/Mac

Top Five Sales.fp7.zip

Try this. It uses a new calculation field in the Company to sum up the total sales, and a self-relationship, sorted by that field.

The calculation in your Top-Five field then grabs the total value from the fifth company, compares it with the current company's total

and sets the flag accordingly.

The position five in the formula is hard-coded; you can replace it with a field or global variable to mark the top 2, 3 etc., or grab

multiple position values from the list and compare them with the current value to mark entire groups. (I guess this can be interesting for sport events.)

If you only want a visual marker and no field to search on or filter, you can remove the field and use the formula to conditionally format

the company name or do other stuff.

Top Five Sales_eos.fp7.zip

  • Author

Thanks a million, works great! I really like the option to set the

global variable. Very helpful.

Thanks again.

-T

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.