I tried that BB raising a limping SB stat but it didnt work. I got 0/X results and I know I have done it many times.
(holdem_hand_player_detail.amt_p_raise_made / (holdem_hand_player_detail.amt_p_raise_made + 2 * (holdem_limit.amt_bb))) = holdem_hand_player_detail.val_p_raise_made_pct
This division doesnt make sense to me. First it forgets that val is % and not just relation. Secondly pot doesnt include the raise made.
Val_p_raise_made_pct is defined as (amt_p_raise_made / pot) * 100. So when only SB limps the pot will be 2 * (holdem_limit.amt_bb) and thus we get -> Val_p_raise_made_pct = (amt_p_raise_made / 2 * (holdem_limit.amt_bb)) * 100
So I build my columns as follows:
cnt_p_bb_raise_sb_limp:
sum(if[holdem_hand_player_statistics.position = 8 and holdem_hand_player_statistics.flg_p_first_raise and ((holdem_hand_player_detail.val_p_raise_made_pct / 100) = (holdem_hand_player_detail.amt_p_raise_made / 2 * (holdem_limit.amt_bb))), 1, 0])
cnt_p_bb_raise_sb_limp_opp:
sum(if[(holdem_hand_player_statistics.position = 8 and holdem_hand_player_statistics.flg_p_first_raise and (holdem_hand_player_detail.amt_p_raise_made / (2 * (holdem_limit.amt_bb))) = (holdem_hand_player_detail.val_p_raise_made_pct / 100)) OR (holdem_hand_player_statistics.position = 8 AND lookup_actions_p.action = 'X' AND holdem_hand_player_detail.flg_f_has_position) , 1, 0])
And now the statistic gives believable results in my reports.
