OK, let's start with "Bet vs missed CB IP".
You don't mention anything about preflop action, so I won't restrict that, but if you want to limit it to single-raised pots or anything please let us know.
1)
"holdem_hand_player_statistics.flg_f_bet AND NOT holdem_hand_player_statistics.flg_f_cbet" says that the player bet the flop but that it was not a continuation bet. (This means that the player was not the last preflop raiser.)
"holdem_hand_player_statistics.flg_p_face_raise" says that the player faced a raise preflop (to avoid limped pots which the player bets atbut).
"holdem_hand_player_statistics.position < holdem_hand_player_detail.val_p_raise_aggressor_pos" says that the player is in position (nearer the button) on the last player to raise preflop. (Note: if you ever play heads-up we will need to change this, but I will avoid that now to avoid complication.)
To count the number of times that all of these conditions are true we build a column like this:
cnt_f_bet_v_missed_cbet_ip =
sum( if[
holdem_hand_player_statistics.flg_f_bet AND NOT holdem_hand_player_statistics.flg_f_cbet AND holdem_hand_player_statistics.flg_p_face_raise AND holdem_hand_player_statistics.position < holdem_hand_player_detail.val_p_raise_aggressor_pos, 1, 0 ])
We then need a similar column to count the opportunities to make these actions. We can do this by changing the "bet AND NOT cbet" part for "holdem_hand_player_statistics.flg_f_bet_opp AND NOT holdem_hand_player_statistics.flg_f_cbet_opp" (notice the "_opp" on the end, meaning "opportunity"), like this:
cnt_f_bet_v_missed_cbet_ip_opp =
sum( if[
holdem_hand_player_statistics.flg_f_bet_opp AND NOT holdem_hand_player_statistics.flg_f_cbet_opp AND holdem_hand_player_statistics.flg_p_face_raise AND holdem_hand_player_statistics.position < holdem_hand_player_detail.val_p_raise_aggressor_pos, 1, 0 ])
We can then build a stat using these columns, like this:
(cnt_f_bet_v_missed_cbet_ip / cnt_f_bet_v_missed_cbet_ip_opp) * 100
See the walk-through in the
Tutorial: Custom Reports and Statistics for how to construct stats using expressions like these.
2) The equivalent stat for the turn can be built in a similar way, except that we can look for a c-bet on the flop instead of checking preflop actions.
cnt_t_bet_v_missed_cbet_ip =
sum( if[ holdem_hand_player_statistics.flg_t_bet AND holdem_hand_player_statistics.enum_f_cbet_action='C' AND NOT holdem_hand_player_statistics.flg_f_check, 1, 0 ])
This says that we bet the turn after calling a flop cbet and that we didn't check on the flop (so that we are in position on the c-bettor - if we didn't check then we must have faced the bet before our first opportunity to act).
Strictly speaking there are some different multi-way situations which will be counted by this expression (such as when the player calls a c-bet and third player raises behind). It is possible to eliminate those, but there are different ways to do it depending on whether or not you want to include hands which were raised and re-raised on the flop, So I will leave that for now.
The opportunities column is then:
cnt_t_bet_v_missed_cbet_ip_opp =
sum( if[ holdem_hand_player_statistics.flg_t_bet
_opp AND holdem_hand_player_statistics.enum_f_cbet_action='C' AND NOT holdem_hand_player_statistics.flg_f_check, 1, 0 ])
3) The river columns can be built in exactly the same way; replacing _t_ with _r_, and _f_ with _t_.
Have a go at adding these three stats, and let us know if you have any problems. See if you can then write expressions for another of your stats and post back if you want us to check them or help you out further.