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 / Filtering Data Table
Power Apps
Unanswered

Filtering Data Table

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi , i have a requirement to filter a data table based on fields in a form.

 

I want to filter the data table records containing only the logged in user.

 

Thank you!

g1.JPG
g2.JPG
Categories:
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Anonymous 

    Can you supply more details on the error you are getting?  The red X picture doesn't tell us much.  Hover over it and see what the error is.

    In fact, you can also choose there from the red X to "Edit in Formula Bar".  If you do that, you just might also notice what the problem is.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

     

    @RandyHayes  , I'm getting a Invalid argument type error. I've tried correcting it using different ways , but none of them work.

     

    Any help would be appreciated!

     

     

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    Hi @Anonymous 

    If you use Set(LoggedInUser,User().FullName) in the OnStart property of the app, You can filter your data table's Items property as long as you have a field in the table that references the full name of user as follows:

    Filter(datasource,fieldwithusersname=LoggedInUser)

      

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @Drrickryp  Tried , but didn't work.  Still gives me the invalid argument Type error.

     

    I am using a sharepoint Person/Group Column field which shows me the users , maybe that is why this isnt working because i'm not manually entering anything.

     

    Thanks

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    Hi @Anonymous 

    I don't use SharePoint but perhaps Randy could offer a suggestion. I'm sure that you are right about it.  If you put a Text label on your screen, perhaps you could figure out the formula to obtain the user name and then use that in your datatable.

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 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard