Hello! I'm trying to figure out how to count the number of times that a linked record appears within a cell in a lookup field, but I'm completely stumped.
My base contains information about hockey leagues and clubs. There are several tables, but the important ones for this problem are:
- Leagues: Each record represents a different hockey league.
- Clubs: Each record represents a different hockey club.
- Seasons: Each record represents an individual season played by each league.
In the Leagues table, I have a lookup field that links to the Seasons table. This field (League Champions) contains a club name from every season, with some clubs appearing multiple times (e.g., the club Färjestad BK appears 9 times).
I would like to be able to use this in an interface for each league, where I can use an element to create a table/list that shows how many times each club won that league (e.g., Färjestad BK were league champions 9 times, Växjö Lakers HC were league champions 4 times). Alternatively, I would even be okay with a formula field that returns a list (e.g., returning something like "Färjestad BK (9 championships), Växjö Lakers HC (4 championships)"). I am struggling to figure out a way to make either of these happen.
To make this slightly more complicated, there are some records in the Clubs table with identical names (e.g., there are 3 clubs called EV Füssen but only one of them won the top-division league championship).
If anyone has some ideas, that would be wonderful!