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

Complex relationship setup....Units-->Packages-->Boxes


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

Recommended Posts

Posted

I need to setup relationship where I can add up multiple number of units to give packages...and multiple packages to boxes all for a given year 

 

for eg.

 

 Years      Units                      Packages                             Boxes

  2013      x11 =2                        x= 5                                     17

  2013      x12 =3

  2013      y11=6

  2013      y12 =6                       y=12

 

 2014       x11 =2                        x=5                                         15

  2014      x12 =4

  2014      y11=5                         y=10

  2014      y12 =5

           

 

 

I am not sure how to set up such complex relationships and 'sum' calculation. any suggestions will be appreciated !!    

Posted

assuming that you have the "x" and "y" split off and in their own fields in that table then you do not need relationships at all.  Just create summary fields for the qty and sort by year and by whatever field holds the x and y

 

You can also use ExecuteSQL() to generate the results without the summary fields.  Or use a looping script to count, ,,,

Posted

Hello Wim, thanks for reply. But x and y are in same table...not sure if you meant that...in short data is like this 

 

year      unitid    unit#    packageid   package#    boxesid    boxes#

2013      x11        2                x                 5               X            17

2013      x12       3

2013      y11       6

2013      y12      6                  y                  12

 

2014       x11      2                 x                    5                   15

2014      x12      4

2014      y11       5                 y                   10

2014      y12      5

             

there is a set relationship between x11/x12 to ->x    and   x/y to X ....

 

Not sure if summary field will help in this scenario...i have tried SQL but setting up multiple loops has been complicated :'(

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