Navigation
Most popular FAQs 
- When I add a new player they do not ... (31673 views)
- You calculate ERAs for 6 or 9 innings. My ... (30320 views)
- How do you add a statistic to a report? ... (30154 views)
- I don't understand the statistic Catcher's Interference (CI)? How ... (28473 views)
- How do you create an Input Statistic? (28322 views)
- I just purchased Statbook 3.2 in the hopes that ... (28076 views)
- Any way to for me to access the Totals ... (27661 views)
- How do I add OPS (On-base percentage + Slugging) ... (26609 views)
- Love the new report builder. Can it do conditionals? ... (26259 views)
- I used to indicate .1 for a 1/3 inning ... (24702 views)
Latest FAQs 
- I downloaded your software and can't figure out how ... (2012-09-28 15:47)
- How come you don't respond to my emails? (2012-09-28 15:42)
- Is Statbook compatible with Mac OS X 10.7 Lion? ... (2012-02-03 18:09)
- I am trialling this software for potential use. I ... (2012-02-03 18:06)
- Where can I download previous versions of Statbook and ... (2012-02-03 18:02)
How To's
Love the new report builder. Can it do conditionals? For example, Can I create a custom report to read: Mickey Mantle (1-3, 2 2B, 3 RBIs, Run); Roger Maris (2-3, RBI)?
Yes, but it can get complicated. If you are familiar with SQL this will come naturally. If not, then feel free to make a request.
For the problem above, this will create what you are looking for (The Result field when editing a report):
p.first || " " || p.last || " " || "(" || (s.Single+s.Double+s.Triple+s.HomeRun) || "-" || (s.Plate-s.Walks-s.HitByPitch-s.Sacrifice) || (CASE WHEN s.Double=1 THEN ", 2B" ELSE (CASE WHEN s.Double>1 THEN ", " || s.Double || " 2B" ELSE "" END) END) || (CASE WHEN s.Triple=1 THEN ", 3B" ELSE (CASE WHEN s.Triple>1 THEN ", " || s.Triple || " 3B" ELSE "" END) END) || (CASE WHEN s.HomeRun=1 THEN ", HR" ELSE (CASE WHEN s.HomeRun>1 THEN ", " || s.HomeRun || " HR" ELSE "" END) END) || (CASE WHEN s.RBI=1 THEN ", RBI" ELSE (CASE WHEN s.RBI>1 THEN ", " || s.RBI || " RBIs" ELSE "" END) END) || (CASE WHEN s.Runs=1 THEN ", Run" ELSE (CASE WHEN s.Runs>1 THEN ", " || s.Runs || " Runs" ELSE "" END) END) || ")"
You can also go to the Statbook Downloads Page and import a similar example report (See the More Reports download link)
Tags: -
Related entries:
- How do you create an Input Statistic?
- How do you add a statistic to a report?
- You calculate ERAs for 6 or 9 innings. My ERA is based on 7 innings (or another number). How do I change this?
- How do I add OPS (On-base percentage + Slugging) to an overall report?
- Any way to for me to access the Totals line on reports? My added fields sometimes don't have totals.
Last update: 2009-11-24 18:58
Author: Statbook
Revision: 1.2
You cannot comment on this entry