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 / Dropdown and Combobox ...
Power Apps
Unanswered

Dropdown and Combobox not sorting

(1) ShareShare
ReportReport
Posted on by 518 Moderator
Hello
I have a custom page (canvas app) in a model driven App.
I want to sort the items in a dropdown (modern control) or a combobox (classic control).
Into items i put
SortByColumns(Filter(Themen_mit_Budgets,Projekt.Projekt=txt_aktProjekt.Selected.Projekt),"cr8ec_budget",SortOrder.Descending)
 
Anyway the sorting is ignored.
Any idea what could case the problem?
Categories:
I have the same question (0)
  • ANB Profile Picture
    7,223 Super User 2025 Season 2 on at
    Hi @SLMR,
     
    Have you tried using Distinct?
     
    Try this:
     
    SortByColumns(Distinct(
        Filter(
            Themen_mit_Budgets,
            Projekt.Projekt = txt_aktProjekt.Selected.Projekt
        ),
            cr8ec_budget
    ), "cr8ec_budget", SortOrder.Descending)
    If the "cr8ec_budget" gives you an error, try "Value" instead.
     

    Please click Does this answer your question 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 a Like.


    Thanks,
    ANB
  • SLMR Profile Picture
    518 Moderator on at
    Hi ANB
    (i can not select the user with at).
    That will not solve my problem, as i do not want to get the distinct values of buget.

    the table Themen_mit_budgets contains the columns:
    projekt (lookup to projekt)
    display (a text to be displayed)
    budget (a number value)
     
    The dropdown box is part of a gallery
    Dependend on the project of the gallery item, the items to be displayed should be filtered by projekt.
    Futher sorted by the column budget
    and the column display should be visible in the dropdown box.
     
    It is working so far that the values are filtered and right values are displayed in the dropdown box.

    But the valeus are not sorted

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 310 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 228

Last 30 days Overall leaderboard