Announcements
I am customizing a SharePoint online form with PowerApps and trying to to display time ranges in a combo box based on the time ranges that apply. My original function to show all time ranges was "Distinct('Calls Booked', 'Appt Window')". I have two columns that apply to the upper and lower range in the window.
How do I structure my formula to show all time ranges that fall within the current time, whatever that is? Here is a sample of my data:
hi @sher5817 are the appt window predefined categories or is it free text? if you have the time as 11:00 the first and second entries will be included, is that what you need?
Hi rubin,
The appointment windows are predefined. Please see the attachment for the sample data.
thanks,
Sherazad.
@sher5817
Here you go:
add this to your combobox Item
Set(_Range, With( { _now: Hour(Now()) }, Filter(yourDataSource, And(_now >= 'Start Time', 'End Time' <= _end) ) ) )
Result
hope it helps,
R
Hi Rubin, I was unable to get this formula to work. Where doe the _end come from? Is that a name of one of the columns? And what is allowing you to show the data in the first column?
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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 429 Most Valuable Professional
11manish 191 Super User 2026 Season 2
MS.Ragavendar 122 Super User 2026 Season 2