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 / Drop down to show avai...
Power Apps
Answered

Drop down to show available time slots when the date is selected.

(0) ShareShare
ReportReport
Posted on by 11

Hi all, 

I am new to powerapps and i am stuck at where i want the drop down only show the available time slots, when the date is selected.

User is to select the date and then choose the time from the drop down. 

I have two drop downs, one for hour and one for minutes. For minutes only 00 or 30. 

For the hour, its between 10-17. 

In the sharepoint list, i have a date-time column, and to check when the user select a date. 

sut_hkum_0-1686236438128.png

Need help.. 

Categories:
I have the same question (0)
  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @sut_hkum ,

     

    Could you please share more details about your scenario? How do you know a timeslot is available or not?

     

    Generally speaking, in the OnChange property of Hour and Minute dropdowns we use Notify and Reset functions along with an If statement to check the selected date and time. If it available, do nothing, if not, push a notification to user and reset those date picker and dropdown controls.

     

    Best regards,

  • sut_hkum Profile Picture
    11 on at

    Hi @v-jefferni 

    Thanks for the reply, here are more details.
    1. To answer your question, I have yet to figure out how to check if the time-slot is available.

    Below are the setup that i currently have.

    1. I have a column in the sharepoint list, date_time (mm.dd.yyyy hh:mm)

    2. The goal is, when user selsect a date in the powerapp, check with the list on the selected date and return available time slots.

    3. Time slot starts form 10:00 to 17:00, each slot is 30 minutes. There will be 15 slots per day.

    4. My thought is to have another column with HH:mm for time-slot,

    and in the power app, a single time-slot drop down (hh:mm).

     

  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @sut_hkum ,

     

    This will be much simpler than a single date and time column. You can user a Filter function to get available timeslots in the Dropdown Items property according to the selected date.

    Filter([15 slots array],DateTimeValue(Concatenate(Text(DatePicker.SelectedDate),",",ThisRecord.Value)) in SPList.DateTimeColumn)

    This criteria is for getting available timeslots that cannot be found in the list date and time column.

     

    Best regards,

  • sut_hkum Profile Picture
    11 on at

    Hi @v-jefferni,

    I can now get the drop down with the Time slot, but only shows occupied time slot. 
    I cant figure it out to show available time slots, Infact I also need help to set up available time slots somewhere.

    sut_hkum_2-1686840207619.pngsut_hkum_3-1686840249918.png

     

     

     

  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @sut_hkum ,

     

    You need to add a Not function for the criteria:

    Filter([15 slots array],Not(DateTimeValue(Concatenate(Text(DatePicker.SelectedDate),",",ThisRecord.Value)) in SPList.DateTimeColumn))

     

    Best regards,

  • sut_hkum Profile Picture
    11 on at

    hi @v-jefferni

    Thanks a bunch, it worked.

    I added few more filter columns as needed. 

     

     

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
Vish WR Profile Picture

Vish WR 914

#2
11manish Profile Picture

11manish 617

#3
Valantis Profile Picture

Valantis 598

Last 30 days Overall leaderboard