Skip to main content

Notifications

Community site session details

Community site session details

Session Id : ALdOSKTj4fBLGmINAF/s7L
Power Apps - Building Power Apps
Answered

Filter and SortbyColumns in a dropdown

Like (0) ShareShare
ReportReport
Posted on 3 Mar 2020 10:58:10 by 11

Hey, 

 

i am working on a PowerApp where i want to Filter and Sort the Items in a dropdown. 

SortByColumns('IT Systemliste';"Title");

Datacard.jpg

 

 

This is the working "SortbyColumns" code. 

I now want to filter the Title by "Lifecycle" and that it shows all except "End of Life" from the Sharepoint list IT Systemliste field "Lifecycle".

 

I tried this one but the "<>" is an invaild argument type.

Filter(SortByColumns('IT Systemliste';"Title");Lifecycle<>"End of Life")

 

not working.jpg

 

 

 

I will add some screenshots from the Lists and the Powerapp that i am using.

 

I also dont know why i have to usw " ; " instead of " , " but it works. 

 

Kind regards. 

 

Patrick

Categories:
  • RobS1308 Profile Picture
    7 on 05 Jul 2021 at 13:45:00
    Re: Filter and SortbyColumns in a dropdown

    In case you are still looking for the issue with ";" and "," its because you are using german Power Apps.

    I had the same issue. You need your Admin to change your system language.

  • Verified answer
    WarrenBelz Profile Picture
    146,788 Most Valuable Professional on 07 Mar 2020 at 04:38:21
    Re: Filter and SortbyColumns in a dropdown

    Hi @PatrickPP ,

    The core issue you are getting the Delegation warning on is the <> (not) filter, which is not Delegable.

    While your code should work on small data sets, the easy workaround with 160 items is to create a Collection and then filter it. You can first run this on screen entry (or any other convenient trigger)

    ClearCollect(
     colITList; //or whatever you want ot call it
     'IT Systemliste'
    )

    then your filter will work

    Filter(
     SortByColumns(
     colITSystems;
     "Title"
     );
     Lifecycle<>"End of Life"
    )

     

    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.

     

  • PatrickPP Profile Picture
    11 on 03 Mar 2020 at 13:01:28
    Re: Filter and SortbyColumns in a dropdown

    Ah sorry i forgot. 

    Yeah i changed them from 500 to 2000.  The delegation msg is still the same. 

    There are about 160 records in the "IT Systemlist" list

     

    What do you mean with same formular. 

  • eka24 Profile Picture
    20,921 on 03 Mar 2020 at 12:49:09
    Re: Filter and SortbyColumns in a dropdown
    You didn't say anything on the delegation I raised.
    Are you using same formula for the two.
  • PatrickPP Profile Picture
    11 on 03 Mar 2020 at 12:35:14
    Re: Filter and SortbyColumns in a dropdown

    I am using 2 Sharepoint Lists.

    1. IT Change Log 

    2. IT Systemliste 

     

    The problem is that the <> is not working somehow. 

     

     

     

  • eka24 Profile Picture
    20,921 on 03 Mar 2020 at 11:39:45
    Re: Filter and SortbyColumns in a dropdown
    Definitely this is a delegation warning. Because I tried the formula at my end, no issues.
    How many records are in your table. If it's less than 2000, then go to settings and increase the delegation capacity to 2000. Otherwise what is your datasource, Sharepoint,SQL or excel
  • PatrickPP Profile Picture
    11 on 03 Mar 2020 at 11:32:23
    Re: Filter and SortbyColumns in a dropdown

    Hey, 

     

    thanks for the quick answer. 

     

    Unfortunately i still get the error with that change. 

     

     
  • eka24 Profile Picture
    20,921 on 03 Mar 2020 at 11:06:43
    Re: Filter and SortbyColumns in a dropdown
    Try
    SortByColumns(Filter('IT Systemliste';Lifecycle<>"End of Life");"Title")

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Building Power Apps

#1
MS.Ragavendar Profile Picture

MS.Ragavendar 10

#2
LC-26081402-0 Profile Picture

LC-26081402-0 6

#3
EE-04041031-0 Profile Picture

EE-04041031-0 4

Overall leaderboard