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

I have a mileage field in a table and a summary field (count = mileage) that sorts on the TableNameID field and it works fine. However I only want the summary to count mileage when the field Report Printout = Yes. I thought the way to solve this is to create a global mileage field with the value = Yes and add another table occurence of the table I'm working in to the graph and use Report Printout = global mileage and then use the new relationship in the original summary field when restarting the count. I can't seem to get it to work though.

Create a calculation ( number ) with: Case ( Report Printout = "Yes" ; mileageField )

Base your summary field on this calculation instead. :^)

  • Author

Create a calculation ( number ) with: Case ( Report Printout = "Yes" ; mileageField )

Base your summary field on this calculation instead. :^)

No need for a global field and another TO then?

No, from what I understand, you do not need another table occurrence. Summary fields act on the table they are created in and they summarize every record which has a value in the field specified if that record is in the found set. And you said:

I have a mileage field in a table and a summary field (count = mileage) that sorts on the TableNameID field and it works fine.

... so you do the same thing except you create a calculation which only outputs the mileage if Report Printout = Yes. Maybe call it CReportMileage as:

Case ( Report Printout = "Yes" ; mileageField )

How you define that calculation criteria does not matter. You can use a global field which contains 'yes' (it can reside in any table) and it will be evaluated as 'yes' in every record because calculations act at the record level. What matters is that the summary field will 'do its business' on the record set depending upon the values output from the calc results - IOW, mileage total only when specified.

So a new summary field, maybe called sCountReportMileage (Count = cReportMileage) will, in essence, filter the mileage value before you summarize it.

  • Author

So a new summary field, maybe called sCountReportMileage (Count = cReportMileage) will, in essence, filter the mileage value before you summarize it.

Super explanation thank you very much. To get the desired result I had to change (Count = cReportMileage) to (Total = cReportMileage).

That is why wording is so very important - both in asking the question and answering:

"I have a mileage field in a table and a summary field (count = mileage). I only want the summary to count mileage when the field Report Printout = Yes."

I should have realized and asked for verification. I am pleased that you worked it out. :thumbsup:

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.