Title: Formulas not work
Last modified: August 21, 2016

---

# Formulas not work

 *  [teecrisp](https://wordpress.org/support/users/teecrisp/)
 * (@teecrisp)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/formulas-not-work/)
 * Hi there,
 * i have installed the plugin correctly and running a custom league.Im having a
   hard time getting custom forumlas to show up in player lists.
 * I have 3 variables per player (wins,losses,totalpoints) and in the statistics
   category. I have a column for points per win, and have a stat formula that has
   totalpoints/win, except it just shows up as zero in the player list.
 * Any advice?
 * [https://wordpress.org/plugins/sportspress/](https://wordpress.org/plugins/sportspress/)

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

 *  Plugin Author [ThemeBoy](https://wordpress.org/support/users/themeboy/)
 * (@themeboy)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/formulas-not-work/#post-5105023)
 * [@teecrisp](https://wordpress.org/support/users/teecrisp/) Could you paste the
   output of SportsPress > System Status below? (please use the “code” button)
 *  Thread Starter [teecrisp](https://wordpress.org/support/users/teecrisp/)
 * (@teecrisp)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/formulas-not-work/#post-5105088)
 *     ```
       Home URL:	http://8.8.8.8/wordpress
       Site URL:	http://8.8.8.8/wordpress
       SP Version:	1.1.8
       WP Version:	3.9.1
       WP Multisite Enabled:	No
       Web Server Info:	Apache/2.2.22 (Ubuntu)
       PHP Version:	5.3.10-1ubuntu3.13
       WP Memory Limit:	40 MB - We recommend setting memory to at least 64MB. See: Increasing memory allocated to PHP
       WP Debug Mode:	No
       WP Language:	Default
       WP Max Upload Size:	2 MB
       PHP Post Max Size:	8 MB
       PHP Time Limit:	30
       PHP Max Input Vars:	1000
       SUHOSIN Installed:	No
       Default Timezone:	Default timezone is UTC
       fsockopen/cURL:	 Your server has fsockopen enabled, cURL is disabled.
       SOAP Client:	 Your server has the SOAP Client class enabled.
       Plugins
       Installed Plugins:	Simple Members Only by Steven Fernandez version 1.0.0,
       SportsPress by ThemeBoy version 1.1.8
       SP Configuration
       Sport:	custom
       Event Outcomes:	Win (win) [0], Loss (loss) [0]
       Team Results:	Win (win) [0], Loss (loss) [0]
       Player Performance:	Wins (wins) [0], Losses (losses) [0], Total Points (totalpoints) [0], Avg Pp () [0], Points Per Win (pointsperwin) [0]
       Table Columns:
       Player Metrics:	Staff Member () [0], Winss (winss) [0], Lossess (lossess) [0], Total Pointss (totalpointss) [0]
       Player Statistics:	Wins (wins = ) [0], Losses (losses = ) [0], Total Points (totalpoints = ) [0], Points Per Win (pointsperwin = $totalpoints / $wins) [0]
       SP Taxonomies
       Leagues:
       Seasons:	Fusion Fighters Blitz July 12-13 (fusion-fighters-blitz-july-12-13), Fusion Fighters Blitz June 28-29 (fusion-fighters-blitz-june-28-29)
       Venues:
       Positions:
       SP Post Types
       Events:	 1 publish, 0 future, 0 draft, 0 private, 0 trash, 1 auto-draft, 0 inherit
       Calendars:	 0 publish, 0 future, 0 draft, 0 private, 0 trash, 0 auto-draft, 0 inherit
       Teams:	 1 publish, 0 future, 0 draft, 0 private, 0 trash, 0 auto-draft, 0 inherit
       League Tables:	 0 publish, 0 future, 0 draft, 0 private, 1 trash, 2 auto-draft, 0 inherit
       Players:	 23 publish, 0 future, 0 draft, 0 private, 1 trash, 2 auto-draft, 0 inherit
       Player Lists:	 2 publish, 0 future, 0 draft, 0 private, 0 trash, 2 auto-draft, 0 inherit
       Staff:	 0 publish, 0 future, 0 draft, 0 private, 0 trash, 0 auto-draft, 0 inherit
       Theme
       Theme Name:	Twenty Fourteen
       Theme Version:	1.1
       Author URL:	http://wordpress.org/
       Templates
       Template Overrides:	No overrides present in theme.
       ```
   
 *  Plugin Author [ThemeBoy](https://wordpress.org/support/users/themeboy/)
 * (@themeboy)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/formulas-not-work/#post-5105147)
 * [@teecrisp](https://wordpress.org/support/users/teecrisp/) The issue could be
   one of two things (or both):
 * 1. I’m not sure if there is a need to have a “Wins” variable in Player Performance.
   You could use the Event Outcome directly when calculating Player Statistics, 
   so let’s change the equation to:
 * Points Per Win = Total Points ÷ Win
 * (“Win” should be from Event Outcomes)
 * 2. If the “Rounding” value for Points Per Win is 0, this could also result in
   the value being returned as zero if the equation returns a number less than 0.5.
   Changing the Rounding value to 3, for example, will ensure that 3 decimal places
   are shown.

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

The topic ‘Formulas not work’ 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/)

 * 3 replies
 * 2 participants
 * Last reply from: [ThemeBoy](https://wordpress.org/support/users/themeboy/)
 * Last activity: [11 years, 10 months ago](https://wordpress.org/support/topic/formulas-not-work/#post-5105147)
 * Status: not resolved