Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building 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

 

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,679 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,015 Most Valuable Professional

Leaderboard