web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Filter Gallery for mul...
Power Apps
Unanswered

Filter Gallery for multiple column options

(0) ShareShare
ReportReport
Posted on by

Hi,

 

I have a dropdown list (linked to a single line text input column - not a choice column) for "resource types", and I was wanting to link two types together - for example.... If "Outpatient" is selected ... I want all results that are outpatient to show, however I also want the results that are for the option in the same column "Both" to show. 

 

This is the coding that I have so far - I expanded the original coding for the filter so that I could account for the two additional outcomes however nothing that I've tried is working.... ALL HELP greatly appreciated!

 

SortByColumns(
Search(
If(
//This is all service and all types
Dropdown1.Selected.Value ="All" And Dropdown1_1.Selected.Value="All" , 'RRG',
// This is for all services and inpatient type
Dropdown1.Selected.Value="All"And Dropdown1_1.Selected.Value="Inpatient",
Filter('RRG',TYPE= "Inpatient" && TYPE="Both"),
// This is for all services and Outpatient type
Dropdown1.Selected.Value="All"And Dropdown1_1.Selected.Value="Outpatient",
Filter('RRG',TYPE="Outpatient" && TYPE="Both"),
// This is for all services and selected type not outpatient or inpatient
Dropdown1.Selected.Value="All"And Dropdown1_1.Selected.Value<>"All" And Dropdown1_1.Selected.Value<>"Outpatient" And Dropdown1_1.Selected.Value<>"Inpatient",
Filter('RRG',TYPE= Dropdown1_1.Selected.Value),
// This is for selected services and all types
Dropdown1.Selected.Value <> "All" And Dropdown1_1.Selected.Value="All",
Filter('RRG','Service Location'= Dropdown1.Selected.Value),
//This is for selected services and Inpatient selected
Dropdown1.Selected.Value <> "All" And Dropdown1_1.Selected.Value="Inpatient",
Filter('RRG','Service Location'= Dropdown1.Selected.Value And TYPE="Inpatient" && TYPE="Both"),
// This is for selected services and Outpatient selected
Dropdown1.Selected.Value <> "All" And Dropdown1_1. Selected. Value="Outpatient",
Filter('RRG','Service Location'= Dropdown1.Selected. Value And TYPE="Outpatient" && TYPE="Both"),
// This is for selected services and selected types not inpatient or outpatient
Dropdown1.Selected.Value <> "All" And Dropdown1_1.Selected.Value<>"All" And Dropdown1_1.Selected.Value<>"Outpatient" And Dropdown1_1.Selected.Value<>"Inpatient",
Filter('RRG'= Dropdown1.Selected.Value And TYPE= Dropdown1_1.Selected.Value)),
// This is the end of the search sentence
TextSearchBox1.Text,"Title","KeyWords"),
"Title",If(SortDescending1, SortOrder.Descending, SortOrder.Ascending))
 

Categories:

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 350 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 318

#3
Mohsin Ali Profile Picture

Mohsin Ali 220

Last 30 days Overall leaderboard