Accessing historical analytics within an app

Ok, here’s the idea. Since Game Center and all the other game network systems don’t seem to offer “team-based” leaderboards, I was looking to use analytics to update game stats, i.e. “Red team wins” and “Blue team wins.”

The question is, can I use the same analytics within the same app to retrieve said stats, i.e. number of wins by the red/blue team? If so, how could I access them?

Does anyone have another solution or workaround to this type of scenario?