Hello,
I would like to filter my second dropdown by the first one. Beside this, both should filter my gallery.
I have collections on my screen
OnVisible:
ClearCollect(Collect_customer, {Value: "Show All"});
ClearCollect(Collect_Factor_name, {Value: "All"});
Collect(Collect_customer, Distinct(Factors, Customer));
Collect(Collect_Factor_name, Distinct(Factors, Factor));
First dropdown which is sorting by "Customer":
Items:
Sort(Collect_customer,Value,SortOrder.Ascending)
Second dropdown which is sorting by "Factor":
Items:
If(
Customer_dropdown.Selected.Value = "Show All", Collect_Factor_name,
Customer_dropdown.Selected.Value <> "Show All", Filter(Collect_Factor_name, LookUp(Factors, Factorid = ThisRecord.Factorid, Customer) = Customer_dropdown.Selected.Value)
)
It is working pretty well on "Show All" , I have a full list of possible factors:

But when I choose first specific "Customer" I got same result as "Show All" even with factors booked for another customer.
When I select another specific customer, Factor dropdown is empty. Look at below screen.

I assume that my second condition in IF function is not working correctly, but I didn't get any warnings. So, it is hard for me to understand what is wrong with this.
Thank you in advance for your help!