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 / Sort and filter a Gallery
Power Apps
Answered

Sort and filter a Gallery

(0) ShareShare
ReportReport
Posted on by 24

Hi, Im building an app for my company. For this app i want to buid a search function for a gallery. This gallery needs to be sorted on the date with sortorder decending. The filter part for searching contains an Or function to let me search in 4 different columns. I tried some formulas but can't get it to work. Anyone who can help?

 

 

Sort(
 Filter(
 Goodcatch;
 Or(
 Searchbar_excel.Text in 'Oorzaak afwijking';
 Searchbar_excel.Text in 'Genomen actie';
 Searchbar_excel.Text in 'Naam melder';
 Searchbar_excel.Text in Datum
 )
 );
 Datum;
 SortOrder.Descending
)

 

 

 

Categories:
I have the same question (0)
  • DJ_Jamba Profile Picture
    2,837 Super User 2025 Season 2 on at

    Hi @Waterblikje 


    That's not a delegable query (assuming Goodcatch is a table and not a collection).

    What isn't working?
    Is there an error?

  • Verified answer
    SpongYe Profile Picture
    5,616 Super User 2025 Season 2 on at

    Hi @Waterblikje (fellow Dutch memeber) 😉

     

    In your case the Search function is more useable. 

    The Search function finds records in a table that contain a string in one of their columns.

    Search(Table*, SearchStringColumn1 [, *Column2*, ... ] )

     

    The code would look like:

    Sort(
     Search(
     Goodcatch;
     Searchbar_excel.Text;
     "Oorzaak afwijking";
     "Genomen actie";
     "Naam melder";
     "Datum"
     );
     Datum;
     SortOrder.Descending
    )

     

    If you have any questions or feedback, please let me know. Have a great day! 😊

    -----------------------
    PowerYsa Power Platform Enthusiast [LinkedIn] | [Youtube]

    I love to share my knowledge and learn from others. If you find my posts helpful, please give them a thumbs up 👍 or mark them as a solution ✔️. You can also check out my [@PowerYSA] for some cool solutions and insights. Feel free to connect with me on any of the platforms above. Cheers! 🍻

  • v-qiaqi@microsoft.com Profile Picture
    on at

    HI @Waterblikje,

    If you want to search in 4 different columns, you must make sure that all of the 4 columns are Single-line-of-text column.

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 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard