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 / Can I add a Filter on ...
Power Apps
Answered

Can I add a Filter on a Data table column in a canvas app?

(0) ShareShare
ReportReport
Posted on by 894

I have built a simple app that displays a data table from an sql stored procedure. I want to be able to filter on one or two of the columns. I have seen this suggested, and added it to the OnSelect Action for a Data Data Column, but it has no affect when I run the app:

 

SortByColumns(newCollection,"attendance",Descending)

 

 

 

 

Categories:
I have the same question (0)
  • mdevaney Profile Picture
    29,991 Moderator on at

    @stapes 

    You can filter a datasource using the FILTER function.  See here for the official MS Docuementation: https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-filter-lookup

     

    If you need more guidance please share the specific requirements of your task.

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

     

  • stapes Profile Picture
    894 on at

    Thanks mdevaney. Not sure where I apply that. The documentation does not say. Where do I add these filter functions? In my Flow? In my Canvas App?

  • Verified answer
    mdevaney Profile Picture
    29,991 Moderator on at

    @stapes 

    Hi there!  The FILTER function should be used in the Items function of a Data Table (not the column).  Here's an example of a filter with multiple conditions.  You can use as few or many conditions as you like.

     

    Filter(newCollection,yourColumnName1 = "sometext", yourColumnName2 > 1000)

     

    If you need further help be sure to supply some specific requirements of your app 🙂

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

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!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 70

#2
WarrenBelz Profile Picture

WarrenBelz 64 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 36 Super User 2026 Season 1

Last 30 days Overall leaderboard