Avg betsize when donked flop

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

Avg betsize when donked flop

Postby shahrad » Thu Nov 11, 2010 4:25 am

if( cnt_f_bet > 0 , amt_total_avg_f_bet / cnt_f_bet , 0 ) I have this from Kraada, I guess.
Now I changed first cnt_f_bet > 0 into cnt_f_donk > 0, but it always gives me the same stats as Kraada's fromula, unless Donk=0 than it shows 0. I tried several other things, but non of them did work for avg bet size when donk flop. Help very appreciated.
shahrad
 
Posts: 118
Joined: Fri Oct 08, 2010 1:51 pm

Re: Avg betsize when donked flop

Postby WhiteRider » Thu Nov 11, 2010 5:33 am

You will need to build a new column to work out the total amount of the donk bets, in the same way that amt_total_avg_f_bet works, but using the check from the cnt_f_donk column.

Then change your new stat's expression to:

if( cnt_f_donk > 0 , amt_total_avg_f_donk / cnt_f_donk , 0 )
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: Avg betsize when donked flop

Postby shahrad » Thu Nov 11, 2010 7:03 am

This is exactly my problem, I don't know how to turn this
sum(omaha_hand_player_detail.val_f_bet_made_pct)
to work only for flop donk bets.
shahrad
 
Posts: 118
Joined: Fri Oct 08, 2010 1:51 pm

Re: Avg betsize when donked flop

Postby kraada » Thu Nov 11, 2010 9:56 am

amt_total_avg_f_donk:

sum(if[omaha_hand_player_statistics.flg_p_face_raise AND NOT(omaha_hand_player_statistics.flg_p_3bet OR omaha_hand_player_statistics.flg_p_4bet) AND omaha_hand_player_statistics.flg_f_bet AND NOT(omaha_hand_player_statistics.flg_f_cbet_opp) AND
((omaha_hand_summary.cnt_players > 2 and omaha_hand_player_detail.val_p_raise_aggressor_pos < omaha_hand_player_statistics.position) or (omaha_hand_summary.cnt_players = 2 and omaha_hand_player_statistics.flg_blind_b)), omaha_hand_player_detail.val_f_bet_made_pct, 0])
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Avg betsize when donked flop

Postby shahrad » Thu Nov 11, 2010 11:30 am

I could sware I did try this, but I might have done something wrong there. Thank you very much.
shahrad
 
Posts: 118
Joined: Fri Oct 08, 2010 1:51 pm


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

Who is online

Users browsing this forum: No registered users and 0 guests