Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

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

Featured Replies

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 !!    

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, ,,,

  • Author

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 :'(

What Wim meant is that your goal can be achieved by using a straightforward summary report if you have stored separately (or can isolate) the x/y part.

 

See the attached example.

UnitsPackagesBoxes_eos.fmp12.zip

  • Author

this seemed to work...thank you eos !!!!

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.