Hi I am trying to create cascading dropdown menu from two Choice columns in a SharePoint list.
The first dropdown i have.
Distinct(Choices(CategoryData.Category),Value)
My second dropdown should filter based on the selection from the first.
Distinct(Filter(CategoryData,Category.Value = Dropdown1.SelectedText.Value),SubCategory1.Value)
Now the above seems to work but im not sure it is the correct way and do i need to use distinct or can i use only Filter?
Not sure if i should use Choices( or Distinct( or a combination.
I have tried using only filter and adding choices( but im new to this so the code keeps giving me errors or wont load any data.