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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Filter Grid based on D...
Power Apps
Unanswered

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,099 Super User 2025 Season 2 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,099 Super User 2025 Season 2 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,099 Super User 2025 Season 2 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,099 Super User 2025 Season 2 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,099 Super User 2025 Season 2 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard