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

Calendar View

How can I filter a second gallery to show the events on the selected day? I have a calendar view gallery set up and I would like to pick a day and show the events for that date in a separate gallery.

3 REPLIES 3
v-micsh-msft
Community Support
Community Support

Hi @KReyes,

 

Would you please share a screenshot of how you set up the Calendar View Gallery?

 

Mostly we could get the selected result by using Gallery.Selected.FieldName,

 

Assuming you have an Event table a date column within it, then under the items property of the second gallery, the formula should be:

Filter(EventTable, Date = Gallery1.Selected.DateColumn)

Function reference:

Filter function

Gallery usage

 

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

screenshot.png

I tried using the suggested formula and it seems that it does not recognize Date? I also tried Filter(Schedule,'2017QAAuditDate' = CalendarView.Selected.Value) and it doesnt show any error, but it does not return any value. I have a table named Schedule with a column named 2017QAAuditDate. I also tried with a weekly calendar view and it does not work either. Any help is greatly appreciated.

ss2.png

Hi @KReyes,

 

Take a try with the formula below:

Filter(EventTable, DateTimeValue(2017QAAuditDate) = DateTimeValue(Text(Gallery1.Selected.DateColumn)))

Function reference:

DateTimeValue()

 

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (3,936)