cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JoseC12
Helper V
Helper V

Month ID equal to Month(Now())

Good morning,

I created my month list on SharePoint, and I have all them in a Dropdown:

DropDown Months.PNG

Now I want to set default month as today's month, can you help me? For example when today's month is March, the dropdown will set 'March' automatically ('Marzo' in Spanish). Maybe it can helps with the ID of each month matching Month(Now()). Thanks

Month List.PNG

3 REPLIES 3
EricLott
Super User
Super User

Use this in the dropdown's Default property

Text(Today(),"[$-en-US]mmmm")

Here is the documentation in case there are any complications with the language change

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-text

---
If this answered your question, please click "Accept Solution". If this helped, please Thumbs Up.

Alternatively, you can use this:

LookUp(Table(
     {ID:1,Name:"January"}
    ,{ID:2,Name:"February"}
    ,{ID:3,Name:"March"}
    ,{ID:4,Name:"April"}
    ,{ID:5,Name:"May"}
    ,{ID:6,Name:"June"}
    ,{ID:7,Name:"July"}
    ,{ID:8,Name:"August"}
    ,{ID:9,Name:"September"}
    ,{ID:10,Name:"October"}
    ,{ID:11,Name:"November"}
    ,{ID:12,Name:"December"}
    )
    ,ID=Month(Today())).Name
v-siky-msft
Community Support
Community Support

@JoseC12 

Please try this:

1. set the Items property of dropdown: MES

2. set the Value of dropdown: NOMBRE

3. set the Default property of dropdown as below:

LookUp(MES, 'ID MES' = Month(Now()))

Sik

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Carousel April Dunnam Updated 768x460.jpg

Urdu Hindi D365 Bootcamp

Dont miss our very own April Dunnam’s The Developer Guide to the Galaxy! Find out what the Power Platform has to offer for the traditional developer.

Top Solution Authors
Top Kudoed Authors
Users online (2,044)