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.

Sub-summaries

Featured Replies

  • Newbies

I have a sub-summary part called 'Category' to categorise Sales.

I have a calculation field called 'Margin', to measure profitability (profit/sales*100).

I have Summary field, which is the Average of 'Margin', to enter into the sub-summary part, to enable the margin to be calculated for each category of sales.

I sort the report by 'Category', but unfortunately the report shows the same margin figure in all categories. This figure is the margin for the grand total.

Any ideas anyone?

Chris Dixon.

What kind of fields are profit and sales?

  • Author
  • Newbies

The field 'Profit' is a Calculation field (Sales Invoice - Total Cost). 'Sales Invoice' is a Calculation field (Sales Inv 1 + Sales Inv 2 etc). 'Sales Inv 1' and 'Sales Inv 2' etc are number fields.

'Total Cost' is a Calculation field (Cost Materials + Cost Labour + Own Labour.) 'Cost Materials' is a Calculation field Sum(Supplier::Amount) from a related field called 'Suppliers'. 'Amount' in the related file is a number field. 'Cost Labour' is the same as 'Cost Materials', but 'Own Labour' which refers to a related file called 'Timesheets', is a Calculation field called 'Value', which is Case(Name ='x', Hours*25, Name='y',Hours*27 etc). 'Hours is a number field.

The field 'Sales' is actually the aforesaid 'Sales Invoice'.

Thanks for your interest

Chris Dixon.

I don't see anything in your description that would make it not work. What happens if you define a calculation field =

GetSummary ( YourSummaryAverageField ; Category )

  • Author
  • Newbies

I have created a Summary field called 'Average of total Margin' which is the average of the field 'Total Margin', and then created a calculation field called 'getsum margin' which is 'Getsum(Average of total margin,Category), but the result is the same. That is, in every category the result is the margin of the whole selection.

I am sorting correctly by 'Category'.

Thanks for your help.

Chris Dixon.

Thanks

Could you post a simplified example showing the problem? The thing that confuses me is that you call your field "Total Margin", but if I understand correctly, it's not a total of anything - it is the margin of a single record. Same goes for "Total Cost".

Earlier you mentioned that:

'Sales Invoice' is a Calculation field (Sales Inv 1 + Sales Inv 2 etc).

This hints at improper structure: you should not have multiple fields like Field1, Field2, etc. - these should be broken into separate records. I don't know if this interferes with your effort to get a proper summary or not, so an example would be in order.

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.