Average Rakeback per Hand

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

Average Rakeback per Hand

Postby gspott » Thu Mar 12, 2009 7:38 pm

hi,

i want to define a stat for the "General"-tab that presents the average rakeback per hand for the different limit with assumed 27%.

My first try: Section "Holdem Cash Sessions"

Column:
amt_rbh
Expression:
sum( holdem_table_session_summary.amt_mgr / holdem_table_session_summary.cnt_hands ) * 0.27


Statistic:
Rakeback/Hand
Value Expression:
amt_ftrbh


But this didnt work out. As result i get the Total Rakeback and not the Rakeback divided by hands played for the current limit :roll:

Anyone ideas?
gspott
 
Posts: 17
Joined: Sat Dec 06, 2008 8:05 am

Re: Average Rakeback per Hand

Postby kraada » Fri Mar 13, 2009 10:00 am

amt_mgr is already a sum of the mgr for the sessions in that section, and cnt_hands is defined as a different column.

So you can just do:

(amt_mgr / cnt_hands) * 0.27 as the column definition.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Average Rakeback per Hand

Postby gspott » Fri Mar 13, 2009 2:08 pm

thanks so far kradaa,

but that didnt work.....
all i got was this error-message:



http://img17.imageshack.us/img17/3719/errorvnr.jpg
gspott
 
Posts: 17
Joined: Sat Dec 06, 2008 8:05 am

Re: Average Rakeback per Hand

Postby kraada » Fri Mar 13, 2009 3:42 pm

Hrm, I guess you can't do that; I'm surprised the column validates then. You're not going to be able to put the amt_mgr inside of the sum() so I'm not actually sure if you can do this. Though once you have total rakeback and total hands there, you can always just divide one by the other. I know it's not a neat solution but it would work . . .
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY


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

Who is online

Users browsing this forum: No registered users and 6 guests