etsmarines Posted May 15, 2015 Posted May 15, 2015 I have a portal that is displaying a list of items. Each item has a dollar amount and an additional tag on it. Is there a way to create a total of the dollar figure of only a certain selection of the portal records. In my example i have a table called services. It is linked to a table called assets and that table is linked to a table called inventory. My portal shows all the inventory related to the service based on the assets that are related to the service. See the relationship diagram in attachements. With this relationship i can view a portal into the inventory table that looks like the one in the attachement I want to add the total cost amounts seen in the portal but leave out the costs if the related service is equal to the current service i am on. So in the example that you see in the portal I would want to exclude all the items that say LAN because the current service that I am on to view this portal is in fact LAN and i want to add up everything in that portal that has a related service not equal to LAN. Thanks for the help! -Erik
David Jondreau Posted May 15, 2015 Posted May 15, 2015 I think the simplest would be to make a summary field in the Inventory table summing the costs. Then put a single row portal on the layout showing that summary field and filter the portal where inventory::relatedService =/= Service::Name. That should work...I haven't tried it with a relationship that's two "hops" away though.
etsmarines Posted May 15, 2015 Author Posted May 15, 2015 it works but i can't report on it or use that field in a calculation as it only exists in the portal. -Erik
David Jondreau Posted May 15, 2015 Posted May 15, 2015 How are you planning on using it? There are several ways to do this depending on the end result you're looking for.
bruceR Posted May 15, 2015 Posted May 15, 2015 A summary field only exists in a portal if that is the only place you put it. Time to learn about basic FileMaker reporting.
Recommended Posts
This topic is 3816 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 accountSign in
Already have an account? Sign in here.
Sign In Now