Forum Discussion
MontyKnoll
May 16, 2023Copper Contributor
Formula for unique values under a certain criteria.
Hi everyone! I'm trying to workout a formula that counts how many unique people attend an appointment (If 1 person attends the appointment 2 times then it still only counts them as 1). But also I...
Lorenzo
May 16, 2023Silver Contributor
Hi MontyKnoll
If you run 365 one way:
=LET(
UniqBySession, CHOOSECOLS(UNIQUE(Table1),3),
Subjects, SORT(UNIQUE(UniqBySession)),
CountBy, LAMBDA(session, ROWS(FILTER(UniqBySession,UniqBySession=session))),
VSTACK(
{"Session","# Unique Client"},
HSTACK(Subjects, MAP(Subjects,CountBy))
)
)