Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

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

Recommended Posts

  • Newbies
Posted

I'm very new to databse design and I need some help with a calculation that i'm working on

i have 4 tables. customer, product, line item, and category

The line item table is connected to the product, customer tables and the product table is connected to the category table and contains the pricing information

i can get the sum of all the purchases made by a single customer but i am not sure how to get the sum of the purchases in a single category for each customer.

any help on this is greatly appreciated

thanks

Posted (edited)

You need a relationship like above. Create a global field to choose the category that is to be displayed.

-jens

demo.GIF

Edited by Guest
  • Newbies
Posted

Hi. thanks for your help but i'm afraid i still don't understand how to set this up.

I've read through several topics on global fields but i am not sure where to place certain items.

i want to select the category within the service table so it can be repeatedly used without having to select the category time and again. I want the service to be selected in the line item which also selects the customer id to create the relationship.

I dont understand what the global field should be and which fields it should be related to.

and finally, how can i create an equation to calculate the sum of the line items of each category for an individual patient between a start date and end date.

this is what my er diagram is so far

thanks again

dbtesting01.jpg

This topic is 6658 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.