1 Reply Latest reply on Feb 20, 2012 10:12 AM by philmodjunk

    Listing Sub summary totals in trailing grand summary

    ericjlindholm

      Title

      Listing Sub summary totals in trailing grand summary

      Post

      My line items have only 3 types (hardware, labor, transport).  I have a quote layout that breaks out the price for the 3 types.  but the list can be many pages long.  I would like to list the 3 subsummaries in my grand summary right above the grand total.  Thank you.

        • 1. Re: Listing Sub summary totals in trailing grand summary
          philmodjunk

          You can set up a relationship to get to your three sub totals by computing totals of related records via either a filtered portal (Requires FileMaker 11) or 3 distinct relationships that include a field that matches by type as well as by QuoteID to get your three totals.

          Here's the filtered portal approach.

          Assuming your layout is based on LineItems with this relationship:

          Quotes----<LineItems

          Quotes::QuoteID = LineItems::QuoteID

          Use the duplicate button (two green plus signs)  in Manage | Database | relationships to make a new occurrence of LineItems and link it like this:

          LineItems::QuoteID = LineItemsSameQuote::QuoteID

          Define a summary field in line items for your total. (You should already have this field for the upper part of your report.)

          Put a portal to LineItemsSameQuote on your layout and select this summary field from the same table occurrence. Give it this portal filter:

          LineItemsSameQuote::Type = "hardware"

          and you'll get the total of all line items of type "hardware" for this quote. You can then repeat this process to add two more portals to LineItemsSameQuote, but with different portal filter expressions to get the other two totals.