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 / Populate week start Mo...
Power Apps
Answered

Populate week start Monday to End Sunday in Combobox.

(0) ShareShare
ReportReport
Posted on by 527

Hi

Required to populate week start from Monday to End Sunday as follows in Combobox.

Always it shows Current week and last two weeks.

 

knsrinath_0-1702928351354.png

I would greatly appreciate your assistance.

 

Thanks & Regards

Categories:
  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @knsrinath ,

     

    Please try:

    With(
     {CurrentMonday:If(
     Weekday(Today())=1,
     DateAdd(Today(),-6,TimeUnit.Days),
     DateAdd(Today(),-Weekday(Today())+2,TimeUnit.Days)
    )},
    ForAll(
     [-2,-1,0],
     DateAdd(CurrentMonday,7*Value,TimeUnit.Days) &" to "& DateAdd(CurrentMonday,7*Value+6,TimeUnit.Days)
    ))

     

    Best Regards,

    Bof

  • knsrinath Profile Picture
    527 on at

    Hi @v-bofeng-msft 

    Thanks for your reply.

     

    This code is working well.

    In app mode combobox is showing as follows 

     

    knsrinath_0-1702959847102.png

     

    In Default or Play mode

    knsrinath_1-1702960027538.png

     

    Request you make Play mode and App mode both are same.  I have a formulas based on week reference.

     

    Thanks & Regards

     

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

    Hi @knsrinath ,

     

    Please try:

    With(
     {CurrentMonday:If(
     Weekday(Today())=1,
     DateAdd(Today(),-6,TimeUnit.Days),
     DateAdd(Today(),-Weekday(Today())+2,TimeUnit.Days)
    )},
    ForAll(
     [-2,-1,0],
     Text(DateAdd(CurrentMonday,7*Value,TimeUnit.Days),"mm/dd/yyyy") & " to " & Text(DateAdd(CurrentMonday,7*Value+6,TimeUnit.Days),"mm/dd/yyyy")
    ))

     

    Best Regards,

    Bof

  • knsrinath Profile Picture
    527 on at

    @v-bofeng-msft 

     

    You made it very simple.

     

    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 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard