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 / Dropdown Contains Date...
Power Apps
Unanswered

Dropdown Contains Dates in Two Week Groups

(0) ShareShare
ReportReport
Posted on by 5,331 Moderator

I need a Dropdown that allows the user to choose a date range that includes two weeks at a time.

When the user opens the Dropdown they should be able to choose from a list of date (in two week blocks), with the defaul date being including current date, however that range shoud start at the Sunday before.

The should be able to go as far back a one month and as far into the feature as the system allows.

Phineas_1-1659585358625.png

 

 

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

    Hey @Phineas,

     

    If you are generating this dynamically in PowerApps, it will be different every time you load it - is that OK?

     

    Here is an example of how I implemented with a combo box (so I could show the period number and the date range at the same time):

    metsshan_0-1659589525986.png

     

    With(
     //Get Sunday before-last as Seed Day
     {SeedDate: DateAdd(Today(), -Weekday(Today(), Monday) - 7, Days)},
     ForAll(
     //Generate a list of 2-week period starting from 2 periods before Seed Date
     Sequence(10, -2, 1) As Offset,
     {
     Number: Text(Offset.Value + 3),
     Dates: Text(DateAdd(SeedDate, Offset.Value * 14, Days), "dd/mm/yyyy") & " - " & Text(DateAdd(SeedDate, (Offset.Value + 1) * 14 - 1, Days), "dd/mm/yyyy")
     }
     )
    )

     

     

    The first argument of Sequence(), which is 10 in my example, can be adjusted to determine the number of periods generated.

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

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 392 Most Valuable Professional

#2
11manish Profile Picture

11manish 181 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 112 Super User 2026 Season 2

Last 30 days Overall leaderboard