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

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Top Kudoed Authors
Users online (29,478)