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 with variable t...
Power Apps
Answered

Filter with variable to partially match SP List value

(0) ShareShare
ReportReport
Posted on by 13

Hello All,

 

I'm building an app to quickly find phonenumbers or other data about employees in the firm.  

I started with a basic page that shows an organisation chart of the different services and on which you can then click to get the right service in a second page. That works well.

Schermafbeelding 2021-07-08 om 09.55.09.png

But to improve the user experience, I also want to have a search field on the basic page that then displays the searched data in another page. To do this, I linked the search field in the first page to a variable that can then be used on the new page to search different fields.

Schermafbeelding 2021-07-08 om 09.59.29.png

And that is where it goes wrong. If you type in the exact keyword, you get results, but if you only type in a part of the word to be searched for, you get no results.  (e.g. when you search for "vo" you should get "Bavo" but you get nothing. Even when you but the complete first word "Bavo" you get nothing.  If you give the complete name "CLAES Bavo " then you get the desired result but I wanted it to filter on only a part of the string :-(.

 

Schermafbeelding 2021-07-08 om 10.01.09.png

 

The column is a TEXT field so nothing special there.

Schermafbeelding 2021-07-08 om 10.02.52.png

I already found and read different posts on the subject but not gave me a solution for my specific problem.

 

Does anyone have any idea how I can solve this?

 

Thanks for any thoughts on the subject.

 

Grtz

 

Peeceeke

Categories:
  • Nogueira1306 Profile Picture
    7,390 Super User 2024 Season 1 on at

    try this


    If(
    IsBlank(TextInput1.Text);
    CellPhoneNumbers
    ;
    Search(CellPhoneNumbers;TextInput1.Text;"User";)
    )


  • Verified answer
    WarrenBelz Profile Picture
    156,768 Most Valuable Professional on at

    Hi @peeceeke ,

    I am assuming these are fields you are searching

    Filter(
     Personeelslijst_complete;
     (
     varSearch in Afdeling ||
     varSearch in ACTpersoneel ||
     varSearch in Graad ||
     varSearch in Dienst.Value
     ) &&
     Actief
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • peeceeke Profile Picture
    13 on at

    Works like a charm!

    Great thanks a lot

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

#2
M Bilal Khan Profile Picture

M Bilal Khan 258

#3
Mohsin Ali Profile Picture

Mohsin Ali 231

Last 30 days Overall leaderboard