Apply formula to have dynamic groups

I think my suggestion is the same as this one :
Formula to filter which empty groups to show - Suggestion Box - Coda Maker Community