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 / Link Workweek dropdown...
Power Apps
Unanswered

Link Workweek dropdown with text label in gallery.

(0) ShareShare
ReportReport
Posted on by 108

Hello Everyone,
I need help.
I have created a timesheet application. In that i need to create a workwork dropdown which will automatically show week range for the current month. 

Sanskruti_1-1680002245103.png

And when i select a date range 

Sanskruti_2-1680002312483.png

It should change the text label date according to the date range selected. 

Thank you.

Categories:
I have the same question (0)
  • WiZey Profile Picture
    3,023 Moderator on at

    Hello @Sanskruti ,

     

    Do you store a date in your combobox, or is it only a string?

     

    If you're storing the starting date of the week in your combobox, you can do something like this:

     

    Mon: Combobox.Selected.Date
    Tue: DateAdd(ComboBox.Selected.Date, 1, Days)
    Wed: DateAdd(ComboBox.Selected.Date, 2, Days)
    Thrus: DateAdd(ComboBox.Selected.Date, 3, Days)
    Fri: DateAdd(ComboBox.Selected.Date, 4, Days)
    
  • Sanskruti Profile Picture
    108 on at

    Thanks for replying,

    I used a dropdown using expression:
    ForAll(Sequence(53,-WeekNum(Today()),1) As DD,Text(
    DateAdd(DateAdd(Today(),-Weekday(Today(),StartOfWeek.Monday)+1),7 * DD.Value ,TimeUnit.Days),"dd/mm/yyyy")&" to "&Text(
    DateAdd(DateAdd(Today(),-Weekday(Today(),StartOfWeek.Monday)+7),7 * DD.Value ,TimeUnit.Days),"dd/mm/yyyy")
    )

  • WiZey Profile Picture
    3,023 Moderator on at

    In that case it may be a bit archaic, but you can do something like this to convert the combobox's selection to a date:

     

    DateValue(
     First(Split(ComboBox.Selected.Value, " ")),
     n, //Number of days to add
     Days
    )

     

    Add it to the formula I gave earlier and it should work just fine.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 551

#2
WarrenBelz Profile Picture

WarrenBelz 430 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 298

Last 30 days Overall leaderboard