Hello.
For example
- Gender ratio of all players.
- Distribution volume of specific items.
- Ratio of character rolls of all players.
How can I get it?
Thank you.
Hello.
For example
- Gender ratio of all players.
- Distribution volume of specific items.
- Ratio of character rolls of all players.
How can I get it?
Thank you.
PlayFab does not natively support statistics and analysis for specific player attributes. You need to calculate such “ratios” on your own. The PlayFab Statistics is still a recommended way to store such data.
For example, you can create a leaderboard whose name is “Gender”, use statistics value “0” to represent “Female”, use statistics value “1” to represent “Male”. Then you can load the entire leaderboard via API GetLeaderboard, calculate the gender ratio according to the ratio of “1” and “0”. You can obtain other ratios in similar ways.
Besides, we would suggest caching the "ratios" on clients or servers and update regularly to reduce the calls of GetLeaderboard.
2 People are following this question.