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.

Sum/Caculate value list results

Featured Replies

I feel a bit embarassed asking such experts - but I've used FM Pro for years and it's about time I REALLY used it (If you know what I mean) I want to get percentages from value lists - ie: how many times someone chose an item on a list. I can see the results from a find, but what calculation or formula should I be using? Thanks very much.

Welcome troutstudio!

Use a Summary field (Count of Record ID). To show the results you can put SomeField and the Count field on a list layout with a Sub-Summary by SomeField part. It will show the counts for each different value of SomeField when sorted by SomeField. Results will only show in Preview mode or when printed.

  • 4 weeks later...

Often there is more than one way to do things in FMP. The best way depends on several things, including how the data is to be displayed.

I recommended sub-summary parts in this case because it looked like troutstudio was looking for results displayed in a list view, like in a report. For a more dynamic result, a count of related values is better.

Actually my solution was incomplete as it did not show percentage of each value but frequency. To get percentages requires a couple more fields.

Ender,

I'm not sure what you mean by "Sub-Summary by SomeField part. "

Please clarify.

thanks

Ed

I'm not sure what you mean by "Sub-Summary by SomeField part. "

Please clarify.

Just like a layout can have a Header, Body, and Footer, a layout can also have Sub-Summaries. Each of these is called a layout Part.

Sub-Summary parts are defined by the field they are grouped by. 'Sub-Summary by SomeField' is a part that shows up once for each grouping of data in SomeField.

A simple example: You might have invoices for a bunch of sales people in a database, and you want to see the dollar totals for each sales person.

In this case using a Sub-Summary by Sale Person (and sorting by Sales Person), will give us a part that will show up once for each sales person. We can then put the Sales Person name and a summary Total of InvoiceDollars field on this part to show us our totals by Sales Person.

The FM manual has a basic introduction of Sub-Summaries too.

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.