by kraada » Tue Jan 11, 2011 10:06 pm
You have to build the columns first - stats always reference columns.
For RFI in positions 7 or 6 with an M of 20 or higher you need to build two columns:
cnt_p_rfi_ep_m20 =
sum(if[(tourney_holdem_hand_player_detail.amt_before / ( tourney_holdem_blinds.amt_bb + tourney_holdem_blinds.amt_sb + (tourney_holdem_hand_summary.cnt_players * tourney_holdem_hand_player_detail.amt_ante)) > 20) AND (tourney_holdem_hand_player_statistics.position = 7 OR tourney_holdem_hand_player_statistics.position = 6) AND tourney_holdem_hand_player_statistics.flg_p_first_raise, 1, 0])
and
cnt_p_open_opp_ep_m20 =
sum(if[(tourney_holdem_hand_player_detail.amt_before / ( tourney_holdem_blinds.amt_bb + tourney_holdem_blinds.amt_sb + (tourney_holdem_hand_summary.cnt_players * tourney_holdem_hand_player_detail.amt_ante)) > 20) AND (tourney_holdem_hand_player_statistics.position = 7 OR tourney_holdem_hand_player_statistics.position = 6) AND tourney_holdem_hand_player_statistics.flg_p_open_opp, 1, 0])
In the stat you then put the former over the latter and multiply by 100 to get the stat.
[Edited to fix typo.]