6max cash amount won from each position HUD

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

6max cash amount won from each position HUD

Postby rambo00007 » Tue Mar 15, 2011 7:14 pm

Trying to write my own expression to see how much a player has won from the SB at a 6 max cash table i'm also wanting to show the same thing for the BB, HJ, CO and BUTTON.

This is my attempt to do this for the SB but i'm having problems getting it to validate and i don't know whats wrong

sum(if[holdem_hand_player_statistics.amt_won AND
holdem_hand_player_statistics.flg_blind_b = false AND
holdem_hand_player_statistics.flg_blind_s,1,0 ])

I'm not sure if the above is even close, just trying to learn as I go
rambo00007
 
Posts: 82
Joined: Wed Apr 22, 2009 10:15 pm

Re: 6max cash amount won from each position HUD

Postby WhiteRider » Wed Mar 16, 2011 4:37 am

You're heading in the right direction, but you've added the amount won in the wrong place.
Here you do not want to count the number of hands you want, you want to add up (or SUM) the amount that you won, so you need to do this:

SUM(if[holdem_hand_player_statistics.flg_blind_b = false AND holdem_hand_player_statistics.flg_blind_s, holdem_hand_player_statistics.amt_won ,0 ])

This adds/sums up the amount won whenever the player is in the small blind.
See the Tutorial: Custom Reports and Statistics for more information on how to use SUM and IF.

You don't actually need to check for "not big blind", and to help with building expressions could switch to use the position instead. The small blind is always position 9, so that makes the expression:

SUM(if[holdem_hand_player_statistics.position = 9, holdem_hand_player_statistics.amt_won ,0 ])

To build expressions for other positions you then just need to change the 9. Position 0 is the button, 1 is the cut-off, etc.
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: 6max cash amount won from each position HUD

Postby rambo00007 » Wed Mar 16, 2011 11:46 pm

so at a 6 max game if the SB is always position 9 then i'm guessing the other seats will be as follows

BB > 8
UTG > 3
HJ > 2
CO > 1
B > 0

is there any specific changes that need to be made in cases where a table breaks up and ends up being heads up or during a heads up game will it simply use position 8 and 9 by default
rambo00007
 
Posts: 82
Joined: Wed Apr 22, 2009 10:15 pm

Re: 6max cash amount won from each position HUD

Postby WhiteRider » Thu Mar 17, 2011 5:15 am

All correct - BB=8 and SB=9 in all hands, including heads up.
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