Reputation: 11
I would like to have the distinct values of a repeating field listed in another field (in browse mode). The case is as follows:
I have a field that contains country names. The country names in this field may repeat themselves, thus when using the "List" function I get something like "France, France, France, Germany, Germany, Hungary". How can I create a field that lists all the values from my country field, but has it grouped as "France, Germany, Hungary"?
In the case I could directly use a SQL query to interfere with the FileMaker databse I would use the GROUP BY statement.
Upvotes: 1
Views: 3795
Reputation: 1739
To make a summary of all the values across every record, do as follows:
Set the calculation to type 'Text' and with the following code:
ValueListItems ( Get(FileName) ; "Countries" )
If you'd like to find the value for only the current record:
If you'd like the list to update as the repeating field value changes, make certain that you Do Not Store Calculation Results for the field.
Upvotes: 2