Hello Powerapps team,
I am trying to build an excel style filter for each drop-down(or combobox) linked with Sharepoint Data. Until the user selects any value from any dropdown, all values should be available to select on any drop-down. But, whenever the user selects data from any drop-down, it will impact other dropdowns and filter out available values. Is there any function or logic would you like to recommend to achieve this?
Please see the example below:
Let's assume we have 3 column data from the SharePoint List
| Car | Type | Color |
| A | Sedan | Red |
| B | SUV | Red |
| C | SUV | Yellow |
| D | Hatchback | Blue |
| E | Hatchback | Black |
User can select any drop-down(or Combobox) in any order from the PowerApps form:
- If, user first select the "Color" as "Yellow", then user will only see "SUV" on the Type then "C" only on the Car.
- If, user first select the "Color" as "Red", then user will see "Sedan", "SUV" on the Type then depends on the select of Type, user will see either "A"(If user selected Sedan) or "B"(If user selected SUV).
- If, user first select the "Type" as "Hatchback", then user will see "D", "E" option if Car is next select.
- If, user first select the "Type" as "Hatchback", then user select "Blue"as color, then user will only see "D" option in Car dropdown.
In summary, it is filtered down each time a new dropdown is selected.
I made a dependent drop-down (cascading) but need a new logic to achieve this.
Please advise how I can achieve this.
Thanks!