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.

Find totals from a value list

Featured Replies

Is there a way to find all totals using a value list? I have a value list in my invoice layout that has several values in it ( salt,plow,walks and so on)

I want to be able to find a total $ amount spent on salt for example. I know I can do a find & find all invoices with salt item on them. but how do I find a grand-total for ALL invoices with salt on them & have it total the amount of $ spent on salt. Can this be done? I'm stuck... confused.gif

You need to create a summary field that totals the amount in the line items. The summary field depends on the found set, so if you find only the records for salt, the total will only be for those records.

Dana

  • Author

Yes, but the total for those records also contain other items on the invoice. I need a total of salt only.

Yes, each invoice has multiple different items. But those items should be in a separate line items table, where each record is a single item.

If your data isn't set up that way, then you'll have to explain exactly how it's structured to find a solution.

  • Author

Yes, each invoice has multiple different items.And those items are in separate line items table, so how do I formulate it to add those line items?

Here's something I just threw together... I created one calc field in the invoice table that sums all the line items for that invoice. Then I created a summary field that creates the grand total for all found invoices. For the totals for specific items, I created a separate table occurence for line items that is related to invoices by the invoice id and a global "filter field" in the invoice table. Another calc field in the invoice table sums the specific line items for each invoice and another summary field totals the found set for that field. There is a screen refresh issue here, but if you use it how I set it up (choose the specifc item from the popup in the lower right of the layout, and click find) Only invoices with that specific item will be in the found set, and the two summary fields will give you the grand total and the total for specific items.

There are surely other ways to accomplish this, but this works for me. Let me know if this fits the bill for you.

Dana

invoice.fp7.zip

  • Author

Thanks

Works great... I just need to figure out how to use my layout, because the cost of any one item is never the same price. One time salt cost will be $ 24.00 and the next it might be $ 107.00 But I'm alot closer than I was... smile.gif

Then you just enter the cost in the line items table directly instead of storing it in the products table. Just change the calculation fields to sum whatever field you want.

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.