You can do a crazy nested If Function, but I think this is easier an cleaner. If you don't like it, I can help you write the nested If Funtion. I'm new at this too, so check my syntax!
Use ONE Context Variable - so for each button's onselect:
Button for Team A: UpdateContext({cvarteamtofilter:TeamA})
Button for Team B: UpdateContext({cvarteamtofilter:TeamB})
Button for Team C: UpdateContext({cvarteamtofilter:TeamC})
Button for Team 😧 UpdateContext({cvarteamtofilter:TeamD})
Then on your Gallery Items
Filter(Sparepointlistname,Spharepointlistcolumn,
Switch(cvarteamtofilter
TeamA, "Team A",
TeamB, "Team B",
TeamC, "Team C",
TeamD, "Team D"
))
This is saying filter this sharepoint list's column based on the value of the context variable.
Switch(contextvariablename,
"variablevalue=this", "return this value into he Filter function",
"variablevalue=that", "return this value into he Filter function",)
You can add as many things to switch the output value as you have option
Again, I am new - so my question, or where I will have to play with it - I'm not sure if the context variable values have to be in quotes.