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 / Month Name Sort in Dro...
Power Apps
Answered

Month Name Sort in Drop Down from Sharepoint Lookup Column

(0) ShareShare
ReportReport
Posted on by 35

Hi all,

 

I have a Sharepoint list that has a lookup column from a Months Table. In the log form that I created that has the Month drop down from the lookup column, the column is not showing the months in the correct order. I have researched on here and found a couple sort drop down month column entries, but those did not fit my scenario. I have tried several different variations within the "Items" value of the drop down to no avail. The list that is tied to the form is brand new and does not have data in it yet. Any help would be appreciated. So far I have tried:  

 

Sort(Choices([@'SP List'].Month), Text("SP List.Month", "[$-en-US]mmm"), Ascending)

 

and it does not sort or do anything.

 

 

Categories:
I have the same question (0)
  • Verified answer
    TheRobRush Profile Picture
    11,128 Moderator on at

    Biggest issue there I assume would be that months are not in alphabetical order, and since its technically just a collection of strings you wouldn't have much to sort them by.

     

    You could do it like this

     

    Sort(
    ForAll(
     //////MonthTest is a collection of month names I made for this test
     MonthTest, 
     /////MonthName is the name of the column in that collection, this & MonthTest are 
     ////the parts you would need to switch to match YOUR list of months
     { 
     /////First we collect the month name
     Month:MonthName,
     ///Next we set its order value
     Order: Switch(
     MonthName,
     "January", 1,
     "February", 2,
     "March", 3,
     "April", 4)}), 
     ///Last step is to tell this dropdown to sort by the order column we set
     Order, Ascending)

     

    Gives us a dropdown of months, sorted in their calendar order

     

    TheRobRush_0-1670259497386.png

     

  • Buckets Profile Picture
    35 on at

    @TheRobRush 

     

    Should I be inserting "Choices('SP List'.Month)" where you have MonthTest? Also, after I input the "{", it wants me to use a ThisItem.... 

    Just for clarification, this drop down is from a Sharepoint List and that Sharepoint list has a Month column that is a lookup from a table called "Months". That table is laid out with two columns, the Month Name and the Month Number. 

  • TheRobRush Profile Picture
    11,128 Moderator on at

    Yah, whatever your source will be goes in replacement of MonthTest. If checking an entire list of items, just the list name, then reference the rest in the {} section below. If a specific record something more liek the choices(record.column) will suffice. after the { you will start with Month: followed by a formula to set month name so should be  something like Value(? I think, depends on what chocie column tables are laid out like, I THINK they use Value:"Choice" format so something like Month:Value,Order:Switch based on value of month namme

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 94

#2
WarrenBelz Profile Picture

WarrenBelz 82 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 38 Super User 2026 Season 1

Last 30 days Overall leaderboard