I have a gallery which shows results from a collection (colMyCollection). I have multiple comboboxes above the gallery for filtering the gallery. In my Department Combobox I am using the following function in Items property:-
Sort(ForAll(Distinct(colMyCollection,Department), {Result: ThisRecord.Value}),Result)
I now want to show a second combobox that shows only the distinct disciplines from colMyCollection that have the same department as selected in the Department combobox.
If no Department is selected I'd like my discipline combobox to show all distinct disciplines, if a department is selected from the first combobox I'd like my Discipline combox to only show disciplines that have the same department.
I'm sure this is simple to do but I've been away from PowerApps for a while and can't figure this out.