web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

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,297 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard