Skip 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.

Calculations of sub-summaries

Featured Replies

This is a problem I've been working on for a while and I can't seem to figure it out. I'm trying to do a report that will track our profit margin for sales and give me totals based on each level of summaries.

We're got a database with all of our order items and each item has the sale price and our cost. A simple calculation gives us the profit margin for each item.

1-(Item Cost/Item Price)

When I do the sales report we list out each sale and get a sub-summary by Product, Vendor and a Total. I get totals of each of the sub-summaries (i.e. Total of Item Cost) but I want to be able calculate the sub-summaries to be able to see the profit margin like we do for each individual sale.

1-(Total Cost Summary/Total Price Summary)

So far, I can get a summary for the complete found set but I can't seem to get the calculations for the sub summaries.

Any ideas?

try "getsummary" (see FM8 Help), e.g.

GetSummary(Total Sales;Country) returns a summary of all records pertaining to the value in the Country field.

GetSummary(Total Sales;Total Sales) produces a summary of all records (similar to using a summary field, which is a total of total sales).

  • Author

YES! Thank you. Exactly what I was looking for.

This was a big piece of figuring out a report I've been wanting for years.

Huge help!

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.