cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Regular Visitor

Filter for Existing Meetings that Contain Specific Word

Hi everyone - I am building out the Book a Room template to reserve flex offices. In the MeetingsGallery, I am trying to filter for meetings that contain the word "booking" in the subject. 

 

The original formula is Sort(Filter(FutureCalendarEvents, Start >= DateAdd(Now(), -2, Hours) && End >= Now(), Day(Start) = Day(DateSelected)), Start, Ascending) 

 

I did something similar in the RoomsGallery to only show resources labelled "office" but it was much simpler. Coming up empty on adding a filter to the sort. Any suggestions? Thanks in advance 🙂

1 ACCEPTED SOLUTION

Accepted Solutions
Regular Visitor

Thanks for responding! I am not entirely familiar with the PowerApps syntax yet and needed to use the in function. 

 

The formula ended up being: 

 

Sort(
Filter(FutureCalendarEvents, Start >= DateAdd(Now(), -2, Hours) && End >= Now(), Day(Start) = Day(DateSelected),"Booking" in Subject),Start, Ascending) 

View solution in original post

2 REPLIES 2
Super User III
Super User III

I suggest you add another column to filter as:

Sort(
Filter(FutureCalendarEvents, Start >= DateAdd(Now(), -2, Hours) && End >= Now(), Day(Start) = Day(DateSelected),BookingColumn="Bookings"),Start, Ascending) 

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Regular Visitor

Thanks for responding! I am not entirely familiar with the PowerApps syntax yet and needed to use the in function. 

 

The formula ended up being: 

 

Sort(
Filter(FutureCalendarEvents, Start >= DateAdd(Now(), -2, Hours) && End >= Now(), Day(Start) = Day(DateSelected),"Booking" in Subject),Start, Ascending) 

View solution in original post

Helpful resources

Announcements
secondImage

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

Top Solution Authors
Top Kudoed Authors
Users online (9,858)