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.
Juggernaut

Odbc Import - Group like data

Featured Replies

I need a little help trying to grouping like data, but I also need to sum 2 columns of the data. To give you a better understanding I will show you an example of the data I am pulling in:

 

I am running SQL query against our main system and need to generate a report from the data. Unfortunately I am having trouble summing the last two columns and grouping the data, as I cannot create a temp table to group and sum at the end. Because of this, i receive all of the data as single lines from multiple sources.

 

 

ITEM CODE     VENDOR     QUANTITY    UNIT COST     6 MONTH      12 MONTH

Part1000          Bobs Parts     15                $2.00                  1                     0

Part1000          Bobs Parts     15                $2.00                  0                     1

Part1000          Bobs Parts     15                $2.00                  0                     1

Part1500          Bobs Parts      3                  $40.00               1                     0

Part1500          Bobs Parts      3                  $40.00               0                     0

Part1500          Bobs Parts      3                  $40.00               0                     1

 

I need to group and sum the information base on the data above. It should come out looking like this:

 

ITEM CODE   VENDOR   QUANTITY    UNIT COST    6 MONTH     12 MONTH

Part1000        Bobs Parts         15                $2.00                1                     2

Part1500        Bobs Parts          3                 $40.00              1                     1

 

I have used sub summaries, but this runs into a whole different issue totaling the unit costs and amounts. If i can group the data it also reduces my record count. 

 

Does anyone have a better solution of grouping the data either prior to importation to Filemaker or after importing the data. Currently I get the first table with no issues. I just think it would be easier for the data to come into FM combined and then I can work with the data, but I'm not sure how to keep it simple without running through the data multiple times. There are also a considerable amount of records being pulled.

 

Any help would be appreciated.

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.