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

Recommended Posts

Posted

I am trying to setup a calculation that filters out the data in a Text Field from entries in a Value List (i.e. provides keywords from an associated list). The data in the Text Field is NOT position specific and the list of potential keyword values is hundreds of entries long and will be changing over time. So I generated a Value List based on entries for values entered in another table.

The "ValueListItems" function works well to provide a return delimited list of the entries in the value list but how do I turn this into a Filter command that requires the filterText to be a list of values each surrounded by quotations?

Filter ( textToFilter ; filterText )

I would be very grateful if someone out there had some suggestions on what direction I should try and take this.

Posted

I am afraid that that too is not working well for me. So I thought that perhaps using the ValueListItems function with a Let () command might help but still am not getting anywhere fast.

Attempt #1= No results:

Let ( var1 = ValueListItems ( "test" ; "test" ) ; FilterValues ( test::Text Field ; var1) )

Attempt #2= Error results:

Let ( var1 = " & ValueListItems ( "test" ; "test" ) & " ; FilterValues ( test::Text Field ; var1) )

Error message from Attempt #2:

"The specified table can not be found."

Let ( var1 = " & ValueListItems ( "test" ; "test" ) & " ; FilterValues ( test::Text Field ; var1) )

Posted

I am not sure what exactly are you trying to accomplish. This formula:

FilterValues (

ValueListItems ( Get (FileName) ; "YourValuelistName" ) ;

YourTable::YourTextField

)

will return a return-separated list of values that are common to both the value list and the text field - provided the text field too contains a return-separated list.

Posted

The text field that I am trying to filter is not a return delimited list unfortunately. It is a generic text description that I am just trying to filter to certain keywords, which may be any random order but are valuable to highlight.

Posted

"Highlighting" may have been a poor choice of words on my part. Yes I am just trying to setup a calculation to show which keywords may be in the text description of a particular record. And yes I think that all of the keywords are limited to one word values.

Posted (edited)

Then you should start by generating a return-separated list of all the words in the description. This would be best done by a custom function - though depending on your actual data you might get by removing all punctuation and substituting spaces with returns.

The result can then be filtered against the value list items to produce the list you want.

Another option is to construct a custom function that works in the opposite direction - i.e. checks each item of value list in turn to see if it appears in description. This is more suitable when the items can contain multiple words.

Edited by Guest

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