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

Importing Excel CSV Files With Repeating Fields

Featured Replies

  • Author
  • Newbies

I have an excel csv file (with repeating fields) that I'd like to convert to Filemaker. Each row includes data for a specific customer order. While the majority of fields in a row are unique, the product fields have 20 occurrences. A new row is created by my website whenever an order is placed. I'd like to import this data into Filemaker in 3rd normal form (so that there a single record for each item ordered vs. using repeating data), so that I analyze the data (such as how many XL Blue Shirts were ordered on a given month).

What is the best way to convert the data from records using repeating fields to a file in 3rd normal format? Will I need to write a customer script to do this or are there commands or utilities that do this?

Thanks in advance,

Peter

  • Newbies

I have an excel csv file (with repeating fields) that I'd like to convert to Filemaker. Each row includes data for a specific customer order. While the majority of fields in a row are unique, the product fields have 20 occurrences. A new row is created by my website whenever an order is placed. I'd like to import this data into Filemaker in 3rd normal form (so that there a single record for each item ordered vs. using repeating data), so that I analyze the data (such as how many XL Blue Shirts were ordered on a given month).

What is the best way to convert the data from records using repeating fields to a file in 3rd normal format? Will I need to write a customer script to do this or are there commands or utilities that do this?

Thanks in advance,

Peter

  • Author
  • Newbies

I have an excel csv file (with repeating fields) that I'd like to convert to Filemaker. Each row includes data for a specific customer order. While the majority of fields in a row are unique, the product fields have 20 occurrences. A new row is created by my website whenever an order is placed. I'd like to import this data into Filemaker in 3rd normal form (so that there a single record for each item ordered vs. using repeating data), so that I analyze the data (such as how many XL Blue Shirts were ordered on a given month).

What is the best way to convert the data from records using repeating fields to a file in 3rd normal format? Will I need to write a customer script to do this or are there commands or utilities that do this?

Thanks in advance,

Peter

Hi, Peter, and welcome to the Forums!

If i were you, i would do this as a series of 21 imports. The first import pulls in the customer-order-specific information (customerID, orderID, customerName, phone, etc.) and imports it into the Orders table. The second through 21st imports pull only product-specific data into the LineItems table: orderID (which you will, of course, need to tie the LineItem back to the Order) and ProductName.

The OrderID for each of the 2nd-21st imports will be from the same Excel column. Also, you will wind up with a lot of empty records in the LineItems table; the best way i can think of to undo this is at the end of the script that does all these imports, just find all records where ProductName is empty and delete them.

HTH,

Jerry

Hi, Peter, and welcome to the Forums!

If i were you, i would do this as a series of 21 imports. The first import pulls in the customer-order-specific information (customerID, orderID, customerName, phone, etc.) and imports it into the Orders table. The second through 21st imports pull only product-specific data into the LineItems table: orderID (which you will, of course, need to tie the LineItem back to the Order) and ProductName.

The OrderID for each of the 2nd-21st imports will be from the same Excel column. Also, you will wind up with a lot of empty records in the LineItems table; the best way i can think of to undo this is at the end of the script that does all these imports, just find all records where ProductName is empty and delete them.

HTH,

Jerry

Hi, Peter, and welcome to the Forums!

If i were you, i would do this as a series of 21 imports. The first import pulls in the customer-order-specific information (customerID, orderID, customerName, phone, etc.) and imports it into the Orders table. The second through 21st imports pull only product-specific data into the LineItems table: orderID (which you will, of course, need to tie the LineItem back to the Order) and ProductName.

The OrderID for each of the 2nd-21st imports will be from the same Excel column. Also, you will wind up with a lot of empty records in the LineItems table; the best way i can think of to undo this is at the end of the script that does all these imports, just find all records where ProductName is empty and delete them.

HTH,

Jerry

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.