I am trying to create the following stat,
Player cold calls out of position preflop, they then check calls a c-bet, the turn goes check check and then the player leads out on the river.
So my new columns are,
cnt_f_cbet_def_action_call_t_check_r_bet_out_of_position
----------------------------------------------------------
sum(if[holdem_hand_player_statistics.flg_p_ccall
AND substring(lookup_actions_f.action from 1 for 1)='X' AND holdem_hand_player_statistics.enum_f_cbet_action='C'
AND holdem_hand_player_statistics.flg_t_check
AND holdem_hand_player_statistics.flg_r_bet
,1 , 0])
cnt_f_cbet_def_action_call_t_check_r_bet_out_of_position_opp
----------------------------------------------------------
sum(if[holdem_hand_player_statistics.flg_p_ccall
AND substring(lookup_actions_f.action from 1 for 1)='X' AND holdem_hand_player_statistics.enum_f_cbet_action='C'
AND holdem_hand_player_statistics.flg_t_check
AND holdem_hand_player_statistics.flg_r_check
,1 , 0])
River Bet Special
---------------------
(cnt_f_cbet_def_action_call_t_check_r_bet_out_of_position / (cnt_f_cbet_def_action_call_t_check_r_bet_out_of_position + cnt_f_cbet_def_action_call_t_check_r_bet_out_of_position_opp)) * 100
The problem is it seems both new columns it also says there are zero instances for every player I have checked (which given a very large DB of hands I just don't believe...well I know these specific cases exist). Can anybody spot a silly mistake in my coding?
