That makes sense, I just wanted to give you the exact values you want.
Use the following column to build your custom statistic:
amt_won_3bet_pot:sum(if[(holdem_hand_player_statistics.flg_p_3bet OR (holdem_hand_player_statistics.flg_p_first_raise and holdem_hand_player_statistics.flg_p_3bet_def_opp)) AND NOT(holdem_hand_player_statistics.flg_p_4bet OR holdem_hand_player_statistics.flg_p_4bet_def_opp), holdem_hand_player_statistics.amt_won, 0])
That adds up all of your wins and losses when you either 3bet or raised and faced a 3bet so long as you neither 4bet nor faced a 4bet.
For more on custom statistics please see the
Tutorial: Using Custom Statistics and Reports.