I have a Dropdown that is populated from a SharePoint List. I have 2 other Dropdowns that are populated with Collections based on which value is selected from the first Dropdown. My problem seems to be with loading the collection sorted and displaying Lastname, Firstname. My first dropdown is working fine and displays 2 values. My 2nd Dropdown seems to be struggling with the 2 field names in my collections. Here is the code:
Switch(dd_DataCardValue4_1.Selected.School,
"Trad undergrad", Sort(AddColumns(ColAzureAdvisorsTug, "FullName", surname & ", " & givenName), surname),
"GRTS (SEM)", Sort(AddColumns(ColAzureAdvisorsGRTS, "FullName", surname & ", " & givenName), surname)
)