Need help with Filament Filter query

What is wrong with this filament filter query?
The query never gets updated with the having clause and results are unchanged after applying this query.
Can someone help here?
image.png
Solution
Turns out this was the solution. I can use the having in the child query.

Not sure this is efficient, but this works for now.
image.png
Was this page helpful?