I have three Dropdown controls.
I have Gallery_1.
Gallery_1 is displaying data from a Collection.
The data displayed in Gallery_1 is based on the choices made in the three Dropdowns.
I am having an issue getting the Distinct function to work in the Dropdowns and Gallery_1.

.
The Location Dropdown Items formula is the following. However, where the Location name appears more than once in the dataset it shows more than once in the Dropdown list;
it should be distinct and only appear once.
If(
JPU_Job_Type_Dropdown.Selected.Value = "Drop",
Sort(Distinct(Filter(colPendingDropData,colPending_Invoice_Type = "Drop"),colPending_Location),SortOrder.Ascending),
JPU_Job_Type_Dropdown.Selected.Value = "Install",
Sort(Distinct(Filter(colPendingInstallData,colPending_Invoice_Type = "Install"),colPending_Location),SortOrder.Ascending),
JPU_Job_Type_Dropdown.Selected.Value = "Storm Work",
Sort(Distinct(Filter(colPendingStormWorkData,colPending_Invoice_Type = "Storm Work"),colPending_Location),SortOrder.Ascending),
JPU_Job_Type_Dropdown.Selected.Value = "Trip",
Sort(Distinct(Filter(colPendingTripProjectData,colPending_Invoice_Type = "Trip"),colPending_Location),SortOrder.Ascending))
The Gallery_1 Items formula is the following. Same issue as the Location. Where the Work Order No. (colPending_Title) appears more than once in the dataset, it also appears
more than once in Gallery_1; It should be distinct and only appear once.
JPU_Job_Type_Dropdown.Selected.Value = "Trip" && !IsBlank(JPU_Location_Dropdown.Selected.Value) &&
!IsBlank(JPU_Work_Order_Number_Dropdown.Selected.Value),Sort(Filter(colPendingTripProjectData,colPending_Title = JPU_Work_Order_Number_Dropdown.Selected.Value &&
colPending_Invoice_Type = "Trip" && colPending_Trip_Activity = "Trip"),SortOrder.Ascending),
JPU_Job_Type_Dropdown.Selected.Value = "Trip" && !IsBlank(JPU_Location_Dropdown.Selected.Value),Sort(Filter(colPendingTripProjectData,colPending_Location =
JPU_Location_Dropdown.Selected.Value && colPending_Invoice_Type = "Trip" && colPending_Trip_Activity = "Trip"),SortOrder.Ascending),
JPU_Job_Type_Dropdown.Selected.Value = "Trip",
Sort(Filter(colPendingTripProjectData,colPending_Invoice_Type = "Trip" && colPending_Trip_Activity = "Trip"),colPending_Title,SortOrder.Ascending))