Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building 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

  • Verified answer
    DBO_DV Profile Picture
    4,534 Super User 2025 Season 1 on at
    Re: Filter Grid based on Dropdown

    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?

     

  • Dunes Profile Picture
    55 on at
    Re: Filter Grid based on Dropdown

    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
    DBO_DV Profile Picture
    4,534 Super User 2025 Season 1 on at
    Re: Filter Grid based on Dropdown

    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
    Re: Filter Grid based on Dropdown

    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

     

     

  • DBO_DV Profile Picture
    4,534 Super User 2025 Season 1 on at
    Re: Filter Grid based on Dropdown

    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
    Re: Filter Grid based on Dropdown

    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

     

  • DBO_DV Profile Picture
    4,534 Super User 2025 Season 1 on at
    Re: Filter Grid based on Dropdown

    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
    Re: Filter Grid based on Dropdown

    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

     

  • DBO_DV Profile Picture
    4,534 Super User 2025 Season 1 on at
    Re: Filter Grid based on Dropdown

    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.

     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,653 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard