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 / How to get Power Apps ...
Power Apps
Unanswered

How to get Power Apps display results of multi-select items in a specific order.

(0) ShareShare
ReportReport
Posted on by 47

I currently have a form giving the user the option to select which day of a week they plan to telework. In that form, I have a dropdown menu showing Monday ~ Friday options. 

ScheduleTeleworkMenu-1sm.png

When a user selects the days in a random order, the results display in that same random order. 

ScheduleTeleworkMenu-2sm.png

 

ScheduleTeleworkMenu-3sm.png

 

How can I get the results to automatically display in a Monday ~ Friday style of order?

 

Thanks in advance for your help.

Categories:
  • v-dezhili-msft Profile Picture
    Microsoft Employee on at

    Hi @Darren11 ,

     

    What does your collection look like in the properties of the items in your Combobox?
    I have a test for your reference.

    vdezhilimsft_0-1676617923866.png

    Concat(SortByColumns(AddColumns(ComboBox3.SelectedItems,"id",Switch(Value,"Monday",1,"Tuesday",2,"Wednesday",3,"Thursday",4,"Friday",5)),"id",SortOrder.Ascending),Value,";")

    vdezhilimsft_1-1676617942717.png

     

    Best Regards,

    Dezhi

     

     

  • Darren11 Profile Picture
    47 on at

    Dezhi,
    Thanks for responding. Here is what I have for Items.

    Items = Choices([@Telework_Schedule].Telework_Schedule)

    Basically, I am pulling from a SharePoint list. I don't mind setting it up as you show here. I just need to make sure it saves back to the same SharePoint list. I will try your solution later today.
    Let me know if you have other suggestions.

  • Darren11 Profile Picture
    47 on at

    Hi again Dezhi,

    After applying the code you suggested, I adjusted your ComboBox3 entry to my DataCardValue10. The other issue I am seeing is with the first Value after Switch. I am not sure if this is supposed to be replaced by something else.

    Below is a snap show if the code in my system.

     

    MultiSelect items in order.png

    I have made several adjustments, but so far nothing better than this. Please let me know what other changed I should make.

     

    Thanks greatly for your help.

  • v-dezhili-msft Profile Picture
    Microsoft Employee on at

    Hi @Darren11 ,

     

    Could you please show your error information?
    In which control of your code is written?

    My code is written under label.

    vdezhilimsft_0-1677059676863.png

    vdezhilimsft_1-1677059744686.png

     

     

    Best Regards,

    Dezhi

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 340

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard