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 / Difficulty with filter...
Power Apps
Answered

Difficulty with filtering galleries

(0) ShareShare
ReportReport
Posted on by 332

I'm creating an app that has 3 galleries on the same screen. The galleries are:

 

  • ServicesGallery
  • QuestionsGallery
  • Answers Gallery

I have attached a photo showing the 3 galleries.

The Services Gallery is populated by a SharePoint list called 'Services'

The Questions Gallery is populated by a SharePoint list called 'Questions.' This gallery is filtered by the ID of the Services gallery, so that when someone chooses a service, only the questions relevant to that service appear in the Questions gallery. The Items property for the Questions Gallery is: Filter(Questions,ServicesID=ServicesGallery.Selected.ID)

 

This all works fine. But I need the third gallery, "Answers" to filter according to the question that is selected in the Questions Gallery. The Answers Gallery is populated by an Excel Table that contains 3 columns: the Questions ID, a column called Answers and a third called Results. 

 

The Items property for the Answers Gallery that I have now is: 
Filter(ExcelAnswersTable, Question_ID=QuestionsGallery.Selected.ID)

 

My Answers Gallery then shows an error message that says "Incompatible types for comparison. These types can't be compared: Text, Number."  This doesn't make sense to me because the columns in the 'ExcelAnswersTable' and the Question ID in the 'Questions' Sharepoint list are both numeric data types.

 

When I preview the app, the first question I choose in the Questions Gallery works correctly and pulls up the relevant answers in the Answers Gallery. However, when I choose one of the other questions I just get blanks in the Answers Gallery.

 

Any suggestions would be greatly appreciated! Thanks.

galleries.PNG
Categories:
  • Verified answer
    BrianS Profile Picture
    2,407 Super User 2024 Season 1 on at

    I would try:

    Filter(ExcelAnswersTable, Value(Question_ID)=QuestionsGallery.Selected.ID)

    Your items in Excel may be numbers being interpreted by the app as text. Excel has a number of issues, You may want to think about moving that list into SP as well 

  • T_A_M Profile Picture
    332 on at

    Thank you! That worked, although I'm getting a delegation warning on my Answers Gallery.  😞

  • BrianS Profile Picture
    2,407 Super User 2024 Season 1 on at

    I don't think anything is Delegable with Excel, another reason to move the list to SP 😉

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 393 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 278 Most Valuable Professional

Last 30 days Overall leaderboard