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 / Datepicker + Value fro...
Power Apps
Answered

Datepicker + Value from ComboBox to provide a new date.

(0) ShareShare
ReportReport
Posted on by 28

Hello all,

 

Working on a small solution for my team but i've hit a wall with figuring out how to calculate a date, and wondering if somone could help.

 

Within my PowerApp I have a date picker filed labelled "Date Access Required", the next field is a "Access Length" which is a combo box with the values 1,2,6,8,12  all which represent months.   I'm trying to figure how I can create a "Date to remove access" by calculating 'Date access required'+ 'Access Length' selected value from the combo box and give me a formatted date. I've managed to do this using the calculated column in SharePoint but unfortunately when using Power Automate OData can't filter Calculated columns, so I decided to apply this at the app level so it will update SharePoint as a simple string so I can then use the Odata filter.

 

This is the calculation that SharePoint used 

 

 

=DATE(YEAR([Date Access Required]),MONTH([Date Access Required])+[Access Length(M)],DAY([Date Access Required]))

 

 

Many thanks in advanced!

 

Categories:
  • Verified answer
    StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @Blipstar 

     

     

     

    DateAdd(DatePicker1.SelectedDate,Value(Dropdown2.Selected.Value),Months)

     

     

     

    StalinPonnusamy_0-1634574176851.png

     

    DatePicker1 - Date Access Required

    DropDown2 - Access Length

     


    Thanks,
    Stalin - Learn To Illuminate

  • Blipstar Profile Picture
    28 on at

    Wow! thank you! was so close to actually working that out but so slightly wrong, now I'm reading your formula it makes perfect sense. Thank you!  

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 411 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 338

#3
WarrenBelz Profile Picture

WarrenBelz 256 Most Valuable Professional

Last 30 days Overall leaderboard