web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Define datepicker defi...
Power Apps
Unanswered

Define datepicker defined on other datepickers

(0) ShareShare
ReportReport
Posted on by 48

Hi everyone,

 

We are looking into changing some of our Excels/Access-files into Powerapps.

 

In this case we also have some date-fields, that would automatically update when defining other dates.


Let's say for example that we have date X, which is defined when choosing date Y, but plus 30 days.

 

It is formatted like this in the Powerapp: 

AB__0-1642773945713.png

 

And beyond that, if for example date Y is then also based on field Z, how do we configure that?

 

Thanks in advance, we're really struggling with this :).

 

 

 

 

 

Categories:
I have the same question (0)
  • Verified answer
    StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @AB_ 

     

    Set the DefaultDate of Y date picker to

    DateAdd(DatePickerX.SelectedDate,30,Days)

    Example

    StalinPonnusamy_0-1642775304415.png

     


    Thanks,
    Stalin - Learn To Illuminate

     

  • AB-18111337-0 Profile Picture
    48 on at

    @StalinPonnusamy That works, thanks!

     

    However, I got still one question.

     

    I have one field that uses a 'number' value. This is needed to define the days needed to make an internal evaluation, which depends on what is asked.

     

    So I need a date field (say for example Z) that automatically takes the date from Datepicker Y, but reduces it with the value chosen in the 'number' field.

     

    Anyone got an idea? I was thinking the same code, but - value(thisfield.numberfield);days. However, it doesn't give an error, but it doesn't work either :).


    Thanks in advance!

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @AB_ 

     

    if you want to reduce some number from the date field (Similar formula but minus)

     

    DateAdd(DatePickerY.SelectedDate,-Dropdown1.Selected.Value,Days)

     

    Sample

    StalinPonnusamy_0-1643034543596.png

     


    Thanks,
    Stalin - Learn To Illuminate

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 840 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 332 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 275

Last 30 days Overall leaderboard