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 a gallery using...
Power Apps
Answered

Filter a gallery using multiple criteria

(0) ShareShare
ReportReport
Posted on by 79

Hi, 

 

Need assistance with filtering a gallery using multiple criteria with a DataSource in SharePoint

 

The data source has 3 columns namely: 

 

1. Project Code (Text)

2. Project Year (Text)

3. Project Quarter (Choice)(4 Choices Given)

 

In order to filter the data in the gallery I created 2 text boxes and a dropdown for the user complete in order to get a result in the gallery. The two text boxes gives a result when data is entered into them. The challenge is the drop down box to select the Project Quarter and get a result. 

 

The items property of the galley is as below:

 

Filter('Monitoring Tool Database Key',Title=Project_code_registration.Text,'Project Year (MTK)'=Performance_Year_Registration.Text,'Project Quarter (MTK)'=Dropdown1.SelectedText)

 

I have used variations of this formular where the choices of the drop down came from the data source and not from a separate list but this does not seem to work in this scenario.

 

When running the formular the error I receive is: "Incompatible types for comparison. These types cant be compared. Record,Record"

 

Any assistance in this regard will be highly appreciated

 

RG1601_0-1669631601603.png

 

Categories:
I have the same question (0)
  • adgkred Profile Picture
    228 on at

    Hi @RG1601,

     

    Try changing "Dropdown1.SelectedText" to "Dropdown1.SelectedText.Value", it should work better!

  • RG1601 Profile Picture
    79 on at

    Hi @adgkred ,

     

    Thanks for the feedback, tried it out, error comes back saying "Incompatible types for comparison. These types cant be compared. Record,Text"

  • Verified answer
    RG1601 Profile Picture
    79 on at

    Figured it out, needed to put ".Value" in front of 'Project Quarter (MTK)' coupled with the suggestion from @adgkred . New formular reads as:

     

    Filter('Monitoring Tool Database Key',Title=Project_code_registration.Text,'Project Year (MTK)'=Performance_Year_Registration.Text,'Project Quarter (MTK)'.Value=Dropdown1.SelectedText.Value)

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 542 Most Valuable Professional

#2
Haque Profile Picture

Haque 206

#3
Kalathiya Profile Picture

Kalathiya 201 Super User 2026 Season 1

Last 30 days Overall leaderboard