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 search items
Power Apps
Unanswered

Filter search items

(0) ShareShare
ReportReport
Posted on by 23

Hello all!

 

I am creating app to search in a SharePoint list. The app is working fine but I need to add one more feature I cannot figure out.

 

This is the current code for the gallery:

SortByColumns(
Filter(
[@Materialliste],
TextSearchBox1.Text in Materialnummer ||
TextSearchBox1.Text in Bezeichnung ||
TextSearchBox1.Text in SLOC ||
TextSearchBox1.Text in WE
),
"Title",
If(SortDescending1, SortOrder.Descending, SortOrder.Ascending)
)

 

I can search for all of the four above items (Materialnummer, Bezeichnung, SLOC, WE) but I have some items in the list, that use the same Materialnummer (Material Number), so I want it to filter with the WE number descending. 

 

Does somebody have a tip for me to filter this?

 

Thanks:)

Categories:
  • WarrenBelz Profile Picture
    156,545 Most Valuable Professional on at

    @Deggenau ,

    Filter will return all matching Items (LookUp returns the first matching record). You can easily simply change the sort to this field (what exactly do you want to see in the returned items)

  • Deggenau Profile Picture
    23 on at

    So basicly when i look for Material number 12345 and i have 3 items with the same material number, I want to see the items filtered descending by WE number.

  • WarrenBelz Profile Picture
    156,545 Most Valuable Professional on at

    @Deggenau ,
    As I noted, change this

    "Title",
    If(SortDescending1, SortOrder.Descending, SortOrder.Ascending)
    

    to this

    "Materialnummer",
    SortOrder.Decending

     

    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.

    MVP (Business Applications)   Visit my blog Practical Power Apps

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 368

#3
WarrenBelz Profile Picture

WarrenBelz 244 Most Valuable Professional

Last 30 days Overall leaderboard