Custom report help needed

Forum for users that want to write their own custom queries against the PT database either via the Structured Query Language (SQL) or using the PT3 custom stats/reports interface.

Moderator: Moderators

Custom report help needed

Postby Zorfox » Thu Apr 15, 2010 3:02 pm

I want to review my stats against known values of winning players for my level. The stats below are what I am looking for and for the most part are not predefined fields in PT. Example, PFR/VPIP ratio is PFR divided by VP$IP. So basically I am asking two things,

How do I display a value derived from two fields such as...
PFRRatio (a temporary report holder field) = PFR divided by VP$IP ?

Second if Value X is < “24” then show the grid/column in red, not the entire grid or column, only the box with that value? Basically I want to highlight the field in red if it is out of range.

I want to avoid using SQL through another application to interface with the PT database. Is PT report generator powerful enough to handle this?

It would be nice to have the ability to express text in the report as well such as having the VP$IP value listed with “This is what this is” displayed there.

Anyway, if I can't run a report like this can you point me to the database schema so I can access Postgres via an external report generator?

VPIP%
PFR%
PFR/VPIP RATIO
3BET%
VS 3BET CALL%
4BET RANGE
SQUEEZE%
WTSD%
W$SD%
W$WSF
AGG
AGG%
FLOP AGG%
TURN AGG%
RIVER AGG%
FLOP CBET%
FLOP CBET% SUCCESS
TURN CBET%
FLOP FOLD VS 3BET
FLOP VS RAISE FOLD%
STEAL%
EARLY UO PFR
MIDDLE UO PFR
CUTOFF UO PFR
BUTTON UO PFR
SB UO PFR
PF POS. AWARENESS
RIVER CALL EFFICIENCY
SB RERAISE STEAL
BB RERAISE STEAL
Zorfox
 
Posts: 21
Joined: Wed Jan 20, 2010 7:02 pm

Re: Custom report help needed

Postby WhiteRider » Thu Apr 15, 2010 4:53 pm

Replies in bold.

Zorfox wrote:I want to review my stats against known values of winning players for my level. The stats below are what I am looking for and for the most part are not predefined fields in PT. Example, PFR/VPIP ratio is PFR divided by VP$IP. So basically I am asking two things,

How do I display a value derived from two fields such as...
PFRRatio (a temporary report holder field) = PFR divided by VP$IP ?
You need to build a custom stat and write the Value Expression combining the expressions of those stats.
In this case, something like:
)(cnt_vpip / cnt_hands) * 100) / ((cnt_pfr / cnt_hands) * 100)
Of course, you can simplify that, but you get the point..
Tutorial - Custom Reports and Statistics


Second if Value X is < “24” then show the grid/column in red, not the entire grid or column, only the box with that value? Basically I want to highlight the field in red if it is out of range.
You will need to do this in the Color tab of the configure stats window.
Again, see the tutorial.


I want to avoid using SQL through another application to interface with the PT database. Is PT report generator powerful enough to handle this?
It should be, yes.
Let us know if there is anything you get stuck trying to build.
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK


Return to Custom Stats, Reports, and SQL [Read Only]

Who is online

Users browsing this forum: No registered users and 0 guests