Are you saying there is one button that, when clicked, will show different groups? Or multiple buttons that each show a particular group but hide all others?
I have instances of the latter quite frequently: Buttons 1-5 show their correlating Groups 1-5. I create a ‘Hide All Groups’ action group then add two actions to each button: 1. Run Action Group, 2. Show Group #. Since the actions are run sequentially, the button first hides anything currently displayed, then shows the desired group.