Hi There,
I have a "category" Dropdown that referenced to a Collection at Screen OnVisible event.
ClearCollect(CollectEmerg,{Result1:"All Emergencies"},SortByColumns(ForAll(Distinct(PhoneBook,Subcategory.Value), {Result1: ThisRecord.Value}),"Result1"))
And the Dropdown Item is the collection "CollectEmerg". But its bringing all Subcategory items. The red underlies are the cascading items from Emergency main category which I want to show in this dropdown list.

I am trying the following code instead of above but it is showing error ..
ClearCollect(
CollectEmerg,
{Result1: "All Emergencies"},
SortByColumns(
Filter(PhoneBook, Category.Value = "Emergencies"),
"Result1"
)
)

Can anyone tell me where is the issue?
Thanks