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 Grid based on D...
Power Apps
Answered

Filter Grid based on Dropdown

(1) ShareShare
ReportReport
Posted on by 55

Hi All,

I want to filter my table based on a dropdown box. I have a dropdown box that has list of distinct Statuses from a SharePoint list 'Requests'  (example: Rejected, Approved, Pending). My table also uses the same SharePoint list.  The status field in the SharePoint list is a choice column.


I keep getting this error "Incompatible Types for Comparison. These types can't be compared Record : Record" in my table items property code.

 

I have the following code on the table Items property :


Filter(Requests, Status = drpStatusFilter.Selected.Value)

 

This is my dropdown code:

Distinct(Requests,Status)

 

Any help is appreciated

Categories:
I have the same question (0)
  • Daniel Bocklandt Profile Picture
    5,151 Super User 2026 Season 1 on at

    Hey @Dunes ,

     

    We all had that problem. Basically it's because a choice Column is not only a Value but a table. 

    to get this Filter Working you could do the following:

     

    in the Drop-down Items property you can add this:

    Filter(Requests, Status.Value = drpStatusFilter.Selected.Value)

     

    Let me know if it worked for you.

     

  • Dunes Profile Picture
    55 on at

    Hi @DBO_DV ,

     

    When I put that in my dropdown items property I get the error "Incompatible Types for Comparison. These types can't be compared Record : Record".

     

    See below I have my dropdown above my grid where I want to select distinct values of the Status field from my same SharePoint list that feeds the grid and have the grid only show those records with that Status.

     

    This is the dropdown code you suggested:

     

    Dunes_0-1720615747706.png

    This is my grid items property where I want to filter based on the dropdown:

    Dunes_1-1720615961284.png

     

  • Daniel Bocklandt Profile Picture
    5,151 Super User 2026 Season 1 on at

    Sorry my bad not the dropdown Items property but the Gallery items property has ti have this code .

     

    Now that you've send some screenshots, I can see, that the table Request is not Recognized as table. Is this a visual Bug or is the table not connected correctly? 

     

  • Dunes Profile Picture
    55 on at

    It is connected correctly.  I had played with the names before I screen shot it.  The name of the list is CAPX.  See below.

     

    Dunes_0-1720616665460.png

     

  • Daniel Bocklandt Profile Picture
    5,151 Super User 2026 Season 1 on at

    But maybe you can also do this in DropDown Items put 

    Choices(Requests.Status)

     

    And in the Gallery Items Property: 

    Filter(Requests, Satus=Dropdown1.Selected)
  • Dunes Profile Picture
    55 on at

    The Status choices display with this code you mentioned with no errors

    Dunes_2-1720617823968.png

     

    But I still get the following error here

    Dunes_1-1720617777682.png

     

     

  • Verified answer
    Daniel Bocklandt Profile Picture
    5,151 Super User 2026 Season 1 on at

    Could you try to add .Value on Both sides for the Gallery. I don't really understand why the two can't be compared since they should be formatted exactly the same. 

     

  • Dunes Profile Picture
    55 on at

    This worked...Thank you so much for your help..trying to find the right syntax on this part was not fun.

     

    Filter(CAPX, Status.Value=drpStatusFilter.Selected.Value)
  • Verified answer
    Daniel Bocklandt Profile Picture
    5,151 Super User 2026 Season 1 on at

    Yes it's not easy with those columns (LookUp, Choice Column, People Picker,...)

     

    could you please accept the answer as Solution, so that others can find it as well?

     

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!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 993

#2
Valantis Profile Picture

Valantis 675

#3
11manish Profile Picture

11manish 545

Last 30 days Overall leaderboard