Title: Calculations errors
Last modified: October 15, 2018

---

# Calculations errors

 *  Resolved [MiKapa](https://wordpress.org/support/users/mikapa/)
 * (@mikapa)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/calculations-errors/)
 * Hi all,
 * I’m having a difficult time with some calculations in my Sportspress (Basketball
   related) installation. In particular:
 * [Sample event to check](https://www.eurohoopsleague.net/event/basket-walkers-vs-%CF%83%CF%85%CE%BD%CF%84%CF%81%CE%B9%CE%BC-%CF%84%CE%B5%CE%B1%CE%BC/)
 * 1. In each team’s total stats, the Total rebounds (REB) are zero, when the individual
   players’ rebounds are calculated correctly. Other Total columns (PTS, AST etc)
   are calculated correctly as well. The REB column is the sum of DEF and OFF columns.
   I’m guessing that, because of the fact that the Team’s total REB is a calculation
   of a calculation, this doesn’t work? Is there any way to fix that? Should it 
   work out of the box and maybe I did something wrong (not sure what could I do
   wrong here)?
 * 2. In the same table (Player performance in Event) I’ ve added a custom formula
   for efficiency (there is a ready made variable for that, for use in player lists,
   but I want to show the efficiency in events as well). The formula works well 
   for the players but I want to calculate the team’s average efficiency as well(
   now it shows 0). Can this be done in some way?
 * (Btw the efficiency formula the plugin ships with is “pts + off + def + ast +
   stl + blk − fga + fgm − fta + ftm + to” which is wrong. The turnovers (to) should
   be subtracted, not added).
 * Thanks,
 * Manos
    -  This topic was modified 7 years, 7 months ago by [MiKapa](https://wordpress.org/support/users/mikapa/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcalculations-errors%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Contributor [Savvas](https://wordpress.org/support/users/savvasha/)
 * (@savvasha)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/calculations-errors/#post-10791128)
 * Hi [@mikapa](https://wordpress.org/support/users/mikapa/),
 * We just released a new version (2.6.10) with the following changelog:
 *     ```
       2.6.10
       Tweak – Apply reverse teams settings to logos.
       Fix – Statistics doubling in player lists when player is assigned to a team.
       Fix – Display blank placeholder in player lists when no team is assigned.
       Preset – Update basketball efficiency rating equation.
       ```
   
 * Do you still have the above problems?
 * Thanks,
    Savvas
 *  Thread Starter [MiKapa](https://wordpress.org/support/users/mikapa/)
 * (@mikapa)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/calculations-errors/#post-10791944)
 * Hi Savvas,
 * Yes the problems still exist, any idea what could go wrong with the team’s total
   calculation of rebounds and efficiency rating? Please let me know if you need
   more info on my setup.
 * Thanks,
 * Manos
 *  Plugin Contributor [Savvas](https://wordpress.org/support/users/savvasha/)
 * (@savvasha)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/calculations-errors/#post-10792820)
 * Hi [@mikapa](https://wordpress.org/support/users/mikapa/),
 * 1) You are right. I reproduced the issue and I will inform the Developers to 
   fix it.
 * 2) Unfortunately the Total Average of a Performance is something complicated.
   Its not a simple adding all the Averages of the players and divide by the number
   of the players for example. You can always calculate the Total Average and add
   it manually.
 * Thanks,
    Savvas
 *  Thread Starter [MiKapa](https://wordpress.org/support/users/mikapa/)
 * (@mikapa)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/calculations-errors/#post-10792923)
 * Hi Savvas,
 * Sounds great, waiting for the fix for the rebounds 🙂
 * About the Efficiency total, my previous question about the **average **was wrong.
   I found out that the team’s efficiency is the **sum **of the players’ efficiency
   numbers. Maybe this fact changes something about the possibility to show the 
   team’s efficiency?
 * Thanks again,
 * Manos
 *  Plugin Contributor [Savvas](https://wordpress.org/support/users/savvasha/)
 * (@savvasha)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/calculations-errors/#post-10815602)
 * Hi [@mikapa](https://wordpress.org/support/users/mikapa/),
 * The issue with the wrong total stats was found and fixed. It will be included
   in our next update. In the meantime you can try it with the following commit:
   
   [https://github.com/ThemeBoy/SportsPress/commit/795ae271fe76d00a86f02f5ebeb6042a9d6701a7](https://github.com/ThemeBoy/SportsPress/commit/795ae271fe76d00a86f02f5ebeb6042a9d6701a7)
 * Thanks,
    Savvas
 *  Thread Starter [MiKapa](https://wordpress.org/support/users/mikapa/)
 * (@mikapa)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/calculations-errors/#post-10857570)
 * Hi Savvas. Works like a charm, thanks!
 *  Plugin Contributor [Savvas](https://wordpress.org/support/users/savvasha/)
 * (@savvasha)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/calculations-errors/#post-10857595)
 * Perfect!
 * Thanks,
    Savvas

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Calculations errors’ is closed to new replies.

 * ![](https://ps.w.org/sportspress/assets/icon-256x256.png?rev=1252005)
 * [SportsPress - Sports Club & League Manager](https://wordpress.org/plugins/sportspress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/sportspress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/sportspress/)
 * [Active Topics](https://wordpress.org/support/plugin/sportspress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sportspress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sportspress/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [Savvas](https://wordpress.org/support/users/savvasha/)
 * Last activity: [7 years, 6 months ago](https://wordpress.org/support/topic/calculations-errors/#post-10857595)
 * Status: resolved