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

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (44,118)