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 3454 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Hi there

I am experimenting on a sample of data in a very simple FM database.  I need some help on 'how' FM does things, rather than how to do something myself (although you may scream at my technique below!)

I have two customers on Customer_Table with CustomerID and Name as the fields.  The only other table is called Data and is joined to Customer via CustomerID_FK.

It's a one to many relationship as each customer can have many data rows, around 400 each.  Therefore I have around 800 records in the Data table.  I have added three text fields to the data table  which enable true/false conditions to be set.

I use many CASE statements on the Data table to select various values from records depending on the combination of true/false conditions.  I then summarise these on a second field to get the grand total per true/false combination.

An example of this would be:

     CustID    Text1  Text2          Text3  Amount   CaseStatement1   CaseStatement2

     10           North  Confirmed  Bob      11000     11000

     10           North  Possible     Bob      5000                                     5000   

     If I want a grand total of Bob's confirmed and possible sales in the north, I'd do:

     Case ( Text1 = "North" and Text2 = "Confirmed" and Text3 = "Bob" ; Amount)

     Case ( Text1 = "North" and Text2 = "Possible" and Text3 = "Bob" ; Amount)

I then create summary fields for CaseStatement1 and CaseStatement2 to get the specific values I want.    As I say, given the details in the data I have and the requirements of the task, there are many similar calculations through my test DB.

The next part of my test was to see how I can easily move between customer records to view which sales have happened, ie, view the summary fields.  I set up two layouts, one based on Data and one based on Customer.  Given the data I have and the volume of summaries, I noticed it was significantly quicker moving on the Customer layout between records 1 and 2 than using the Data layout (which of course has 800 records).  

What I don't understand is that surely FM still needs to calculate the Case and Summary statements while moving between just the two customer records regardless, so why is it so much quicker one way versus the other?

Thanks in advance

 

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