I am trying to filter a gallery by dropdown, on an option set data type. SKUs is the entity. Manufacturer is the option set.
The code below adds the dropdown items (with an all result) into the dropdown:
ClearCollect(collectManufacturer1, Choices('SKUs'.Manufacturer));
ClearCollect(collectManufacturer,ShowColumns(AddColumns(collectManufacturer1,"Result",Text(Value)),"Result"));
Collect(collectManufacturer,{Result:"All"});
The code below is for filtering my gallery:
Filter(SKUs,
Manufacturer = 'Manufacturing Site Dropdown_1'.Selected.Result,
),
However I get an error on the filter: Incompatible type. We can't evaluate your formula because the values being compared in the formula aren’t the same type.
Can anybody please point me in the right direction in fixing this error?