What am I doing wrong in the below formula.
I have a ComboBox and a Gallery.
Goal:
If the ComboBox is empty distinct filter the Collection by Title, where each member only appears once.
Else filter the Collection for all items associated with name chosen in ComboBox.
The second half - alone, works, but I can't get the initial distinct to work.
The 'Title' column contains the member's full name (Doyle, Popeye), called FullName in SP List view.
If(IsBlank(ComboBox1.Selected.Value),
SortByColumns(
Distinct(Collection, Title),
"Title",
SortOrder.Descending
),
Filter(Collection, Title = ComboBox1.Selected.Value))