Hello! I need some help with validating selected date on power apps with my sharepoint list.
Context: I am trying to create an app that can issue max. 2 tickets a day. So, when an individual selects a date on the power app, this formula will look through 2 columns on my sharepoint list, mainly 'Date column' and 'tickets column' (text formatted) to see if there are still tickets available on the day. If both tickets are taken on that day, I have a text label below the date to indicate that the date is unavailable. See text in red in screenshot.

My question is, how should I go about creating the formula? My current formula below doesn’t work:
If(DataCardValue22.SelectedDate) = Filter(SharepointList,DateofVisit=DataCardValue22.SelectedDate And Status = "Reserved"),"Date is unavailable.","")
Thanks!