Brian Dunning's FileMaker Custom Functions

DistributionTR ( uniqueList ; dataList )

For each item in list 1, counts occurrences in list 2

  Average rating: 4.4 (37 votes) Log in to vote

Bruce Robertson   Bruce Robertson - Show more from this author

Share on Facebook Share on Twitter

  Sample input:
DistributionTR( "A¶B¶C"; "A¶A¶A¶B¶A¶B")
  Sample output:
A 4
B 2
C 0

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

Simpler output than original function; tab and return delimited, no highlighting.

For each item in list 1 (uniquelist) , counts occurrences in list 2 (datalist). So for instance list 1 could include Seattle and Portland, and list two could be the result of a list function that accumulates the "City" field across a record set.



Gmal   Gmal, New York
May 29, 2013
Is there a way to sort the resulting list by the occurrence values?
Bruce Robertson   Bruce Robertson
May 29, 2013
That's left up to you. Could be done easier now with ExecuteSQL anyway.

Log in to post comments.


Note: these functions are not guaranteed or supported by Please contact the individual developer with any questions or problems.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 16 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: