I know that it's possible to filter a gallery based on a dropdown, but I wanted to know if it is possible to do the opposite as well?
I have a gallery where users will go and update two columns of each row by using a dropdown.
My question is, can you filter what appears in the Items of each drop down based on what the selected row's "Item Type" is?
I was thinking of doing this by creating a collection and putting that in the Items of each dropdown - but that keeps giving me errors. How can I create conditional filtering within the dropdown Items?
Solved! Go to Solution.
Yes this can be done. First, skip the collections and just put it in your Dropdown Items property.
ex. with static values:
Switch(ThisItem.ItemType,
"ItemA", ["Option1", "Option2", "Option3"],
"ItemB", ["OptionY", "OptionZ"]
//...etc...
)
With Dynamic Values:
Switch(ThisItem.ItemType,
"ItemA", Choices([@someListA].SomeColumnA]),
"ItemB", RenameColumns(Distinct(someListB, SomeColumnB), "Result", "Value")
"ItemC", RenameColumns(Filter(SomeListC, SomeCriteria=SomeCriteria).SomeColumnC, "SomeColumnC", "Result")
//...etc...
)
The options are endless!!
I hope this is helpful for you.
Yes this can be done. First, skip the collections and just put it in your Dropdown Items property.
ex. with static values:
Switch(ThisItem.ItemType,
"ItemA", ["Option1", "Option2", "Option3"],
"ItemB", ["OptionY", "OptionZ"]
//...etc...
)
With Dynamic Values:
Switch(ThisItem.ItemType,
"ItemA", Choices([@someListA].SomeColumnA]),
"ItemB", RenameColumns(Distinct(someListB, SomeColumnB), "Result", "Value")
"ItemC", RenameColumns(Filter(SomeListC, SomeCriteria=SomeCriteria).SomeColumnC, "SomeColumnC", "Result")
//...etc...
)
The options are endless!!
I hope this is helpful for you.
User | Count |
---|---|
165 | |
91 | |
67 | |
64 | |
63 |
User | Count |
---|---|
212 | |
157 | |
93 | |
81 | |
72 |