
Announcements
This formula is filtering the Staff records for those who have a Role "in" (a bit counterintuitive) the current Role value in the primary gallery. A trick here is to put the refrence to the current Role option choice value in array braces [ ].
GroupBy(
AddColumns(
Filter(
Staff,Role in [ThisItem.Value]
),
'Staff Name Plus Role',
$"{Name} - {ThisItem.Value}"
),
Name,
'Staff For Role'
)
$"{First(ThisItem.'Staff For Role').'Staff Name Plus Role'} ({CountRows(ThisItem.'Staff For Role')})"