How can I ask via formula if a button is active or not?

I would like to filter only rows with an active button. How can I do that? Thanks for your help

You can use in Filter() the same criteria as you used in button’s Enabled formula.