Announcements
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!
@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.
@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!
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)
@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
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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
11manish 248 Super User 2026 Season 2
WarrenBelz 192 Most Valuable Professional
Mohsin Ali 135