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 / Set current and onward...
Power Apps
Answered

Set current and onwards month

(0) ShareShare
ReportReport
Posted on by 6

Hi, I am new to powerapps and currently, I need to do enhancements for these apps. I have a dropdown list for the month. I need to make sure the user only can choose the current and onwards month only.  The previous month will be visible but the user cannot click it. So far I didn't find any way to do that requirement. Btw the month is from my master list in sharepoint. Here is my screenshot for my apps

Znaanaa_0-1599030127929.png

Znaanaa_2-1599030200113.png

 

Kindly need someone to assist me 🙂 

Thank you in advance.

 

 

 

Categories:
I have the same question (0)
  • VDS_Mantra Profile Picture
    175 on at

    Hi, 

     

    You can use the if condition, make the drop down list with month name & number like Jan(1) and then split the number from this and use the if condition if it is less than current month number then notify. 

     

    Hope it will help.  

     

     

  • eka24 Profile Picture
    20,925 on at

    Is there any particular reason why the previous month should be visible since it will not be used by the user?

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Znaanaa Profile Picture
    6 on at

    Hi,

    There is no reason for that. But it is really good if I can do only show the current and onwards month. 

  • Znaanaa Profile Picture
    6 on at

    The month name is from my data source which is master list in sharepoint.

  • VDS_Mantra Profile Picture
    175 on at

    So it there date from which you are fetching month name or just type month name only in sharpoint. 

     

  • Znaanaa Profile Picture
    6 on at

    Just type the month name in sharepoint list( choice type ).

  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @Znaanaa :

    Coud you tell me:

    • Does Month allow multiple selections?I assume  Month do not allow multiple selections.

    I have an ideal:

    • When the customer selects a month before the current month, the combobox will be reset to the default value immediately and an error message will pop up.

    I'v made a test for your reference:

    Set the combox(I assume it's name is "DataCardValue2")'s OnChange property to:

     

    If(
     Value(DataCardValue2.Selected.Value) < Month(Today()),
     Reset(DataCardValue2);
     Notify("The month cannot be selected, please select the current month or a later month")
    )

     

     7.gif

    Best Regards,

    Bof

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 335 Most Valuable Professional

#2
11manish Profile Picture

11manish 166

#3
sannavajjala87 Profile Picture

sannavajjala87 71 Super User 2026 Season 1

Last 30 days Overall leaderboard