I have got 2 dropdown list and 2 variables: DropdownSection, DropdownEmployee.
DropdownSection is filled with values from variable SectionWithBlank which is from SP List. My OnVisible action:
ClearCollect(SectionWithBlank,{Title:""}); Collect(SectionWithBlank,Distinct(ops_tc2_wydzialy, Title))
That works corretly. Now I fill my EmployeeWithBlank variable with values depending on value selected in DropdownSection. My OnChange event in DropdownSection: ClearCollect(EmployeeWithBlank, {Title:""}); Collect(EmployeeWithBlank, Distinct(Filter(ops_tc2_pracownicy_1, wydzial=Dropdown1.Selected.Value), imie & " " & nazwisko)).
When i pick something in DropdownSection, my DropdownEmployee contains only empty values (e.g. when i got 5 values in my variable (EmployeeWithBlank), my DropdownEmployee got 5 empty values). When i go to View -> Collections, my EmployeeWithBlank variable contains correct values (not empty).