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 / display Month as numbe...
Power Apps
Unanswered

display Month as numbers in Dropdown

(0) ShareShare
ReportReport
Posted on by 443

Hallo,

 

i want to display the 12 months as numbers in a dropdown so i can filter a gallery.

I dont want to use [1,2,3,4,5,6,7,8,9,10,11,12]

How can i do that?

 

Categories:
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @marial16 

    Set your Items property to:  Sequence(12)

     

    I hope this is helpful for you.

  • marial16 Profile Picture
    443 on at

    Still it is not recognized as Month

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @marial16 

    What do you mean by "not recognized as Month"??  You asked for the 12 month numbers - that would be what that formula will provide - 12 numbers.

    Can you explain more of what you are trying to do and what problem you are having?

  • marial16 Profile Picture
    443 on at

    I have a gallery which i want to filter based on the year and month. The month will be selected from a dropdown (1-12).

    gallery gets data from a list that has 2 columns ,Year (single line) , Month (date), ListID (number)

    in the gallery items i use :

    Filter(list, ListID = 1 And Year=Year(Today()) And Month = Dropdown.Selected.Value)....

    Without the month query it works but when i try to add the Month=.. I am getting an error

  • marial16 Profile Picture
    443 on at

    I even tried add Columns 

    ClearCollect(myCollection,AddColumns(List,"MonthNumber",Month(Month)))

    And use the "MonthNumber" to filter

     

    Still did not work..Could it be that the Columns is Named 'Month' and there is a conflict of somehow..I am not sure

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @marial16 

    But you are stating that the Month column is a Date column...so trying to match that to a number is not going to work.

    So if it is a date column, then your formula would be:

    Filter(list, ListID = 1 And Year=Year(Today()) And Month = Date(Year(Today()), Dropdown.Selected.Value, 1))

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @marial16 

    No collection is needed for this!

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 324 Most Valuable Professional

Last 30 days Overall leaderboard