Search code examples
filemaker

Counting instances of same field entry


I have a Filemaker table with multiple entries in fieldA, how can I set fieldB to count the number of occurrences of the corresponding number of records which have the same value in fieldA.

For example, if fieldA is a;b;b;c I want fieldB to read 1;2;2;1.


Solution

  • The simplest is to make a self-relationship from the table to another occurrence of the same table by fieldA. Then fieldB can be like Count( sameFieldA::fieldA ).