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.

Summary from detail table to new table

Featured Replies

I'm stuggling with how to approach the following situation. On the forums I've looked up moving summary data between tables and

also looked at self-join tables and trying to use the Get(Summary) function.

I have a table with detail information.

whse - cust - prod - price - cost - count

ny - fred - rock1 - 10 - 5 - 1

sf - wilma - rock1 - 12 - 4 - 1

la - barney - rock2 8 - 2 - 1

ny - wilma - rock2 9 - 2 - 1

ny - barney - rock1 9 - 3 - 1

la - betty - rock2 10 - 3 - 1

I'd like to move the summary of some of this data to some new tables.

I have a table prod_sum which I'd like to end up with the following from the detail information

prod - tot.price - tot.cost - tot.count

rock1 - 31 - 12 - 3

rock2 - 27 - 7 - 3

I assume some sort of loop script would do the trick here but I'm not sure of the script steps on how to accomplish.

Next I'd like to sum the information by two fields and move that to a new table.

I have a table whse_prod_sum so the data would look like this.

whse - prod - tot.price - tot.cost - tot.count

la - rock2 - 18 - 5 - 2

ny - rock1 - 19 - 8 - 2

ny - rock2 - 9 - 2 - 1

sf - rock1 - 12 - 4 - 1

I'm also assuming a loop script would work for this but because the data is summarized for two fields I would think this might be a

little different from the first loop script maybe even requiring a concatenation.

I have a table cust_prod_sum but would think that if someone can show me the loop script for the whse_prod_sum table, then

I should be able to figure it out from there.

summary_tables.zip

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.