cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frequent Visitor

Multiple Filters

Hello,

 

Im trying to sort a gallery based on multiple separate items. Date picker, Search Bar, and Dropdown. 

 

Dropdown has been tricky, values in SP list are "FYI, In Progress, Complete" and i need to add an "All" option that shows everything. Column name in SP for this is "Action Required"

 

The dropdown works for FYI, In Progress, & Complete, but "All" wont work 

 

Date picker will filter items by SP column "Response Date" 

 

On top of this i would always like the results to be shown by descending date

 

Gallery Items Property is: SortByColumns(Filter([@'Duty Response'],'Action Required'.Value = Dropdown3.Selected.Value, StartsWith('Guest Name', TextSearchBox1_2.Text)), "Date", Descending)

 

Dropdown list items: ["FYI", "In Progress", "Complete", "All"]

 

Any help would be greatly appreciated

 

1 ACCEPTED SOLUTION

Accepted Solutions
Super User II
Super User II

Hi, is the main issue regarding the All option in your dropdown?

SortByColumns(Filter([@'Duty Response'], If(Dropdown3.Selected.Value = "All", true, 'Action Required'.Value = Dropdown3.Selected.Value), StartsWith('Guest Name', TextSearchBox1_2.Text)), "Date", Descending)

This should help with th filtering issue. Let me know if sorting is also an issue.

---
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution. Thanks!

Hardit Bhatia
https://thepoweraddict.com

View solution in original post

3 REPLIES 3
Super User II
Super User II

Hi, is the main issue regarding the All option in your dropdown?

SortByColumns(Filter([@'Duty Response'], If(Dropdown3.Selected.Value = "All", true, 'Action Required'.Value = Dropdown3.Selected.Value), StartsWith('Guest Name', TextSearchBox1_2.Text)), "Date", Descending)

This should help with th filtering issue. Let me know if sorting is also an issue.

---
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution. Thanks!

Hardit Bhatia
https://thepoweraddict.com

View solution in original post

This works perfectly. Thank you so much!!

Glad I could help! Good luck with the rest of your app! Feel free to reach out in case of any questions!

Thanks,
Hardit Bhatia
The Power Addict
https://thepoweraddict.com

Helpful resources

Announcements
News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (3,731)