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.

Having hard time with subtotals

Featured Replies

I have been struggling with subtotals for weeks with no results.

Could someone please take a look at the attached file and let me know if this is feasible in FM without using additional TOs and relationships?

Very much appreciated.

Subtotals.pdf

Each item needs to have a MainCategory field (either sale or expense) and a SubCategory field (type of sale/expense). You also need two corresponding sub-summary parts. Once you have that, a single summary field (Total of Amount) will provide all the sums you need - except the Net.

An easy way to handle the net is to make all expenses negative. Then the same summary field, when placed in a Grand Summary part, will return the net value.

  • Author

Thanks Comment, it worked perfectly. Much appreciated.

Just out of curiosity is there a way to grab the individual subtotals that appear in summary parts and temporarily store them in global fields or in variables. For example variable $Exp1 would store Tot exp1, $Exp2 would store Tot exp2 and so on. I tried using Getsummary( ) but got nowhere, or probably using a script to grab each subtotal and store it in global fields, or is there a custom function that does that?

Thanks again

is there a way to grab the individual subtotals that appear in summary parts

Yes, GetSummary() does that. GetSummary ( sTotalAmount ; SubCategory ) will return the total amount in the SubCategory of the CURRENT record - provided the records are sorted by SubCategory.

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.