Jump to content
Server Maintenance This Week. ×

Find totals from a value list


Kicker3

This topic is 7013 days old. Please don't post here. Open a new topic instead.

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This topic is 7013 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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