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 / Help with syntax to ad...
Power Apps
Unanswered

Help with syntax to add to or combine collections - Time

(0) ShareShare
ReportReport
Posted on by 32

If you have another way around this I am open to it! 

I have an OnStart formula which populates a collection of timeslots 

ClearCollect(
col30minSlots,
ForAll(
Sequence(47),
Time(0,30 *(Value),0)
));
Collect(col30minSlots,Time(0,0,1))

 

I have a SharePoint list which is copied into a collection, filtering down by todays date

ClearCollect(

CollStaffToday, Filter(Availability, 'Appointment Date'=Today()))

 

Then I have a gallery which shows the col30minslots collection, nesting within that is another gallery for the collstafftoday gallery with a formula to show availability between start and end time.

 

Filter(CollStaffToday,TimeValue('Start Time')<=ThisItem.Value And TimeValue('End Time') >=ThisItem.Value)
This all works but it may not be the best way of going about this ^^^^


I need a way to combine both collections into a single collection - is there any way to do this? 

e.g. 

 

TimeStaff Name 1Staff Name 2Staff Name 3Staff Name 4
00:00YNYY
00:30YNYN
01:00NNYY
01:30NNYN
02:00YNYY
02:30YYNY
03:00YYNN
03:30YYNN
04:00NYNY

 

Categories:
I have the same question (0)

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 534

#2
WarrenBelz Profile Picture

WarrenBelz 416 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 306

Last 30 days Overall leaderboard