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 the content of ...
Power Apps
Unanswered

Filter the content of a column, search bar

(0) ShareShare
ReportReport
Posted on by 691

Hello,
I have a Sharepoint list called "Note de Frais" and on my Power Apps application I would like to filter from the "Nom Prenom" column (which is a person field). I want to do this because I would like to create a search bar which will filter the "Nom Prenom" of the users.

 

My SharePoint list :

s44_1-1641214922274.png

 

 

I try this formula : 

SortByColumns(Filter(AddColumns('Notes de frais';"nomprenomdisplayname";'Nom Prenom'.DisplayName);StartsWith(nomprenomdisplayname;TextSearchBox1.Text)); "nomprenomdisplayname"; If(SortDescending1;Descending;Ascending))

But this formula creates errors. When filtering the "Nom Prenom", it works as can be seen in the screenshot below: 

11.PNG

 

But when I click on an expense report I have this problem.
When I was not using the formula to filter, when I clicked on an expense report it displayed the content of the expense report. Why is it that with the formula for filtering "Nom Prenom", my expense reports are not displayed correctly?

thank you in advance for your help !

Categories:
I have the same question (0)
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @s44 

    What is the error you are stating that you get with the formula?

     

    As for what you are referring to as expense reports, I am assuming that you are showing them in a Form.  If so, then you have changed the record schema in your Gallery by adding a column.  This will not match the datasource record schema any longer.  You will need to drop that column after you are done with it.

    So your formula would become:

    DropColumns(
     SortByColumns(
     Filter(
     AddColumns('Notes de frais';
     "nomprenomdisplayname";'Nom Prenom'.DisplayName
     );
     StartsWith(nomprenomdisplayname; TextSearchBox1.Text)
     ); 
     "nomprenomdisplayname"; 
     If(SortDescending1;Descending;Ascending)
     );
     "nomprenomdisplayname"
    )

     

    I hope this is helpful 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 427 Most Valuable Professional

#2
11manish Profile Picture

11manish 201 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard