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.

combining specific records

Featured Replies

  • Newbies

Hi all,

 

Maybe I'm asking something that's been explained before, but I can't find a suitable solutions anywhere.

My problem:

I got a comma seperated text file with 1.4 million records.

Simplified it goes like this:

name        location      present/absent/doubtful/no data

name1      germany     present

name1      belgium      present

name1      france        absent

name1      spain         doubtful

name1      italy            present

name1      portugal     no data

name1      hungary     absent

name2      belgium      present

name2      uk              no data

name2      ireland       doubtful

etc. 

 

As you can see I now have multiple records for each name. What I need is this:

name        present                            absent                  doubtful     no data

name1      germany,belgium,italy      france,hungary     spain         portugal

name2      belgium                                                         ireland       uk

 

So, one record for each name. This will bring back the number of records to app. 50.000 and is workable.

Is there a solution for this and can anyone explain to me (step-by-step) how to do this?

 

Thanks very much in advance!

is the consumption of the csv file reoccuring or one time only?

  • Author
  • Newbies

Hi Kris,

 

If I understand you correctly this is the answer:

It's a one time thing. I want to import the complete file into Filemaker and hopefully I will end up with adatabase(table) as described above.

There won't be any later additions other than manual ones.

I'd recommend leaving the import table as a join table and create parent entities; this will give you much more flexibility.

 

See here for an example (I've totally forgotten how unattractive layouts could be pre v12 …).

 

Apply the script to the included sample data. See how the newly created name records calculate their respective summary. You can easily change the way the summary works or the names of the stati..

 

When you've imported everything successfully, delete the text fields in the import table; the attributes are now stored as keys, referring to the parent tables.

ImportAndCreateParentsForJoin_eos.fmp7.zip

  • Author
  • Newbies

Wow eos!

You've done nearly all the work for me! Spitze!

I think this solves my problem totally.

I guess I'm less "Intermediate" than you are.

You rock.

Recht herzlichen Dank.

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.