Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

This topic is 3936 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

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!

  • Newbies
Posted

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.

Posted

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

  • Newbies
Posted

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.

This topic is 3936 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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