Brian Dunning's FileMaker Custom Functions

CountMultipleValues ( sourceList ; output )

Summarize a list into ValueAx2,ValueB,ValueCx3

  Be the first to rate this function Log in to vote

RealGrouchy   RealGrouchy - Show more from this author
https://realgrouchy.blogspot.com

  Sample input:
CountMultipleValues ( "A¶B¶B¶C¶C¶C¶D" ; "" )
  Sample output:
"A,Bx2,Cx3,D"

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

This is a recursive function I built in 2018 to convert a list of values into a count,
e.g. turn CountMultipleValues ( "A¶B¶B¶C¶C¶C¶D" ; "" ) into "A,Bx2,Cx3,D"

The multiplier symbol ("x" above) and the separator symbol ("," above) can be easily customized.

The use case was that I had a list of ticket purchases (tickets A, B, C, and D) and I wanted a compact way to display in the footer of the printed ticket list how many of each type of ticket I'd need to have on hand.

 

Comments

Log in to post comments.

 

Note: these functions are not guaranteed or supported by BrianDunning.com. 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 22 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: