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 datatable with ...
Power Apps
Unanswered

Filter datatable with gallery selection

(0) ShareShare
ReportReport
Posted on by 272

I have a navigation that's a gallery (Gallery4) and a dataTable (DataTable6).  I am trying to filter the dataTable when an item is clicked in the gallery.  I tried the following but I get a squiggly red line under the formula.

 

'Request Status' is the column name in the DataTable.

The gallery's datasource is a collection called requestStatus.

 

ClearCollect(requestStatus,

"Awaiting Assignment",

"Pending",

"In Progress",

"Complete"

);

 

Filter(DataTable6, DataTable6.Selected.'Request Status' = Gallery4.Selected.Value)

 

What am I doing wrong?

 

 

 

 

Categories:
  • zmansuri Profile Picture
    6,048 Super User 2024 Season 1 on at

    item property of Data Table:

    Filter(DataSource,'Request Status'.Value=Gallery4.Selected.'Request Status'.Value)

     

    Example:

    a.jpg

  • theisogunro Profile Picture
    272 on at

    Thanks for responding.

     

    Sorry, I had changed the datasource from a list to a collection.  The collection looks like this.

     

    ClearCollect(requestStatus,

    "Awaiting Assignment",

    "Pending",

    "In Progress",

    "Complete"

    );

     

    I will modify the question to reflect his.

     

  • zmansuri Profile Picture
    6,048 Super User 2024 Season 1 on at

    DataTable Item Property:

    Filter(DataSource,'Request Status'.Value=Gallery4.Selected.Value)

  • theisogunro Profile Picture
    272 on at

    For some reason it's not working

  • theisogunro Profile Picture
    272 on at

    I recreated it in another environment and used the name 'Project Status'.  I don't get any errors but the filter doesn't work either.  See below:

     

    theisogunro_0-1624986176893.png

     

    Project Status in SharePoint is a choice column.  Not sure if that makes a difference.

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 350 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 318

#3
Mohsin Ali Profile Picture

Mohsin Ali 220

Last 30 days Overall leaderboard