I have a gallery that can filter a data according to cascading dropdown.
In Item gallery filter code
Filter(SiteSupportProfile, Team = Dropdown4.Selected.Result && SubTeam = Dropdown Dropdown5.Selected.Result && AllocationBy = Dropdown6.Selected.Result)
Now I would like to combine search and sort function together. In gallery I have ERPSiteName, support level and workload. I would like to sort and search ERPSiteName
sort and search code : SortByColumns(Search(SiteSupportProfile, SearchBox.Text,"ERPSiteName"),"ERPSiteName",Ascending)
How to combine this filter and search code together in item gallery?
Solved! Go to Solution.
@Nandy ,
It will not until you put something in the Search box - otherwise, try this
With(
{
wProfile:
Filter(
SiteSupportProfile,
Team = Dropdown4.Selected.Result &&
SubTeam = Dropdown Dropdown5.Selected.Result &&
AllocationBy = Dropdown6.Selected.Result
)
},
SortByColumns(
If(
IsBlank(SearchBox.Text),
wProfile,
Search(
wProfile,
SearchBox.Text,
"ERPSiteName"
)
),
"ERPSiteName",
Ascending
)
)
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Hi @Nandy ,
I have structured this to avoid the Delegation issue with Search
With(
{
wProfile:
Filter(
SiteSupportProfile,
Team = Dropdown4.Selected.Result &&
SubTeam = Dropdown Dropdown5.Selected.Result &&
AllocationBy = Dropdown6.Selected.Result
)
},
SortByColumns(
Search(
wProfile,
SearchBox.Text,
"ERPSiteName"
),
"ERPSiteName",
Ascending
)
)
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Hi, Thx for the reply. I had try the code no error but no output at the same time. The gallery does not output the result after I select the dropdown.
@Nandy ,
It will not until you put something in the Search box - otherwise, try this
With(
{
wProfile:
Filter(
SiteSupportProfile,
Team = Dropdown4.Selected.Result &&
SubTeam = Dropdown Dropdown5.Selected.Result &&
AllocationBy = Dropdown6.Selected.Result
)
},
SortByColumns(
If(
IsBlank(SearchBox.Text),
wProfile,
Search(
wProfile,
SearchBox.Text,
"ERPSiteName"
)
),
"ERPSiteName",
Ascending
)
)
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
User | Count |
---|---|
183 | |
124 | |
88 | |
45 | |
42 |
User | Count |
---|---|
248 | |
159 | |
127 | |
78 | |
73 |