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 5949 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Hi everyone! I hope you can help me with this:

I have a field called 'name', and a Value List with some names. What I want to do is to find a way to find out which names of the ValueList don't appear in the records... For Example, the V.List is: Pedro, Amalia, Martin. If in a record, the field 'name' is filled with 'Pedro', I want the calculation gives me 'Amalia, Martin' that are not mentioned.

I don't really find the way... is there any formula?

Here I attach a sample base.

Thanks for all your help people. You're the best.

idea_base.zip

Posted

Hi

this is a calc that you can apply:

Let([

list = ValueListItems ( Get ( FileName ) ; "names" );

reduced = FilterValues ( list ; Substitute ( ¶ & list & ¶ ; ¶ & name & ¶ ; ¶ ) )

];

Substitute ( Left ( reduced ; Length ( reduced ) - 1 ) ; ¶ ; ", " )

)

I'm attaching your file modified with a calc that returns values NOT comma separated ( another type of calc )

idea_baseMOD.zip

Posted (edited)

Thanks a lot Raybaudi, but it doesn't work when I create a new record and write another name...there's always 4 names... the idea is that if you write all the list's names in different records, the calculation should show itself empty. Is there any way to do that? Thanks a lot anyway.

pic.JPG

Edited by Guest
change 'fields' to 'records'
Posted

the idea is that if you write all the list's names in different fields, the calculation should show itself empty. Is there any way to do that?

This is ALL another idea !

But yes, it can be made.

Posted

Thanks for answering Daniele... the thing is that I have the list of names, and I'd want that the calculation show me which people are not included in the record... In the sample picture above, if 'Pedro' is in the record, it shouldn't be in the calculation box. Do you know how to do it?

I hope my bad English be enough.

THANKS A LOT. :

Posted

The attached image isn't real !

There is no way to obtain the reduced list showing Pedro if Pedro is into the name field.

BTW: I didn't understand exactly what you want because sometime you say record, sometime field and never RECORDS.

Posted

Daniele, I wouldn't ever lie to you that are trying to help me!! The picture IS real... please try it yourself.

Sorry... You were right: I wanted to say recordS (I missed the 's').

I originally had 2 records with two different names. The calculation you made showed me the names that weren't in the records. Great.

But then, when I create new records with names that are in the list, the calculation doesn't work and shows me, for example, 'Pedro' in the list, while 'Pedro' is also in the records. Please try it yourself, creating and eliminating records and you'll see. The calculation always shows 4 names even if it should show only 3 names or 2, or 1 or none.

I forgot telling you that the 'reduce list' field should be a global one.

I really thanks to you for your help... please don't think I'm trying to lie to you. Thanks again for all your time.

Posted (edited)

Nop, I have just checked this out, and there's no space after Pedro. Thanks. Any other idea?

Daniele: your calculation works when there calculation field is not a global field... But I need it global, because I need to know which name/s is/are not in the records and if it's not global, it doesn't tell me much (only tells me the names that are not in the record I am watching at... it's great too, but it's not what I am trying to do). : :

Edited by Guest
Posted (edited)

I forgot telling you that the 'reduce list' field should be a global one.

Yeah, your issue might be due to you making the field global. Try the calculation again and make sure the field is not global.

Edit: Not, the issue. I was actually not able to replicate the issue you described, the name in the current record always disappeared from the list.

Edited by Guest
Posted

I forgot telling you that the 'reduce list' field should be a global one.

So you changed something of my example...

Who said that that calculation must be GLOBAL ?

Ofcourse, if the last inserted ( or modified )record contains ( for example ) Martin, the reduced field will contain:

Pedro

Luis

Amalia

Rodrigo

and that result will be visible also in the records where Pedro is into the name field.

Let me say more...

I think that your real need is to have a reduced value list based on the contents of ALL the records of the DB; so that the value list will show ONLY the names NEVER used into the previous records.

Is this correct ?

Posted

You're the best!!!!!!!!!!! I have just seen your way... It seems to works great!!! I have to go to a class now, but as soon as I return, I put hands to work with your way!!! Thanks a lot Daniele!

This topic is 5949 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.