Forum Discussion
ibarajas
Jul 25, 2024Copper Contributor
Team Trend Assistance
Good morning! I'm trying to figure out how to pull the most common trends for a specific team (not numbers). I've done this before (a long time ago), but I can't remember the functions to use. ...
Patrick2788
Jul 25, 2024Silver Contributor
I'm not certain about your sample data but it looks like your goal is to determine the most frequently occurring text item(s) by team -- essentially a Mode Text w/1 criteria.
This Lambda will do it:
Mode.Text = LAMBDA(crit_range, crit, texts,
LET(
include, FILTER(texts, crit_range = crit),
occ, XMATCH(include, include),
common, IFERROR(MODE.MULT(occ),0),
SORT(XLOOKUP(common, occ, include, include))
)
)