web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard