Faced Raise Stat

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

Faced Raise Stat

Postby Kamawoop » Fri Mar 05, 2010 5:52 pm

Hi,

I am creating a report to analyse my blind play for marginal hands. I want to include times when I was facing a raise and times when not. This is possible using the Face Raise checkbox from the filters screen; is there a corresponding boolean stat that I can add to my report? If not how would I create that stat?

I would like the report to read as follows:

Hand - Blind - Faced Raise - Times - BB/100 - ......
QJs - BB - Y
QJs - BB - N
QJs - SB - Y
QJs - SB - N


Thanks,
Kamawoop
 
Posts: 43
Joined: Mon Mar 31, 2008 9:56 am

Re: Faced Raise Stat

Postby WhiteRider » Fri Mar 05, 2010 6:59 pm

So is this report to show individual hands?
So you want the stat in the Holdem Cash Hands section?

To do this create a new column; e.g.
flg_p_face_raise =
holdem_hand_player_statistics.flg_p_face_raise

This is a boolean (true/false) value that says whether or not you faced a raise preflop.

You then need a stat to display this value.
The stat's value expression is just:
flg_p_face_raise
..and your format expression could be:
format_bool( flg_p_face_raise, 'check' )
..to show it as a checkbox or use 'yn' to show Y or N.

Search for "format_bool" in the Tutorial - Custom Reports and Statistics.

You might also find this post useful.
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: Faced Raise Stat

Postby Kamawoop » Fri Mar 05, 2010 7:42 pm

Thanks.

I would also like to add my voice to the clamour of people calling for the ability to rename custom reports. To me it seems slightly absurd that this feature wasn't present from the start, but hope it's added shortly.
Kamawoop
 
Posts: 43
Joined: Mon Mar 31, 2008 9:56 am

Re: Faced Raise Stat

Postby WhiteRider » Sat Mar 06, 2010 6:14 am

WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: Faced Raise Stat

Postby Kamawoop » Sun Mar 07, 2010 3:43 am

It was for the Holdem Cash Player Statistics section of a report.

Thanks, for the help, I have my custom stat working just as I hoped it would. However there is one this I do not understand. Initially I deviated from your suggestion by adding K_ ..... to the rest of the naming convention (in order to signify it was not a pre_made thing;) this produced a not valid SQL error, once I simply removed my own prefix it was fine; why was that?

flg_p_face_raise = holdem_hand_player_statistics.flg_p_face_raise - works

k_hhps_flg_p_face_raise = holdem_hand_player_statistics.flg_p_face_raise - fails
Kamawoop
 
Posts: 43
Joined: Mon Mar 31, 2008 9:56 am

Re: Faced Raise Stat

Postby WhiteRider » Sun Mar 07, 2010 11:14 am

I don't know - that works fine for me with your k_ column name.
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