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 Apps
Unanswered

Multiple Filters

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello everyone,

 

Again I'm stuck on a new problem. I need a gallery that is able to search from a TextSearchbox, only list the same item once and sort by descend and ascend. The code i use now is:

 

SortByColumns(Distinct(Search([@Contracten]; TextSearchBox1_3.Text; "Uitgever"); "Uitgever"); If(SortDescending1; Descending; Ascending))

 

Theres no indication what is wrong, so I hope somebody knows what to do. I'm not that experienced in PowerApps

 

Thank you in advance!

Categories:
  • eka24 Profile Picture
    20,925 on at

    Try:

    SortByColumns(Distinct(Search([@Contracten]; TextSearchBox1_3.Text; "Uitgever"); Uitgever);"Uitgever";If(SortDescending1; Descending; Ascending))

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    When I use your code It sadly still doesn't work. I have little experience with PowerApps, maybe my entire code might be wrong. If you have a reference to another topic or maybe another line of code.

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

    @Anonymous ,

    Try this - note that this structure has a fundamental flaw as you are searching on the same field as you have applied a Distinct filter on, so you need to change the first reference to get the field you need displayed that is Distinct to Uitgever. (otherwise you will get only one record)

    SortByColumns(
     Distinct(
     Search(
     [@Contracten];
     TextSearchBox1_3.Text;
     "Uitgever" //change this to the field you want displayed
     );
     Uitgever 
     );
     "Result";
     If(
     SortDescending1; 
     Descending; 
     Ascending
     )
    )

     

    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.

     

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

    Hi @Anonymous ,

    Just checking if you got the result you were looking for on this thread. Happy to help further if not.

     

    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.

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
11manish Profile Picture

11manish 402 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 296 Most Valuable Professional

Last 30 days Overall leaderboard