"amt_p_raise_made" is not a variable, it is a field in a database table. The field is:
holdem_hand_player_detail.amt_p_raise_made
That is the first raise the player made preflop, and we also have "holdem_hand_player_detail.amt_p_raise_made_2" for the last PF raise. I imagine you want their first raise, though?
To calculate a player's average first raise size, we need a new column like this:
amt_p_1st_raise_ttl =
sum( holdem_hand_player_detail.amt_p_raise_made )
We can then make a stat to divide that by the number of hands the player raised preflop, which is the built-in column "cnt_pfr".
So your stat would be:
amt_p_1st_raise_ttl / cnt_pfr
See the
Tutorial: Custom Reports and Statistics for a walkthrough of how to make a stat from expressions like these.
If you want to use this in reports you can just add your new stat to the Positions tab. If you want to see it by position in the HUD you can either use the Position property (
Statistic Properties), or if you want it for exact positions instead of EP,MP,LP,blinds see the linked tutorial for how to build that into your stats.
If you want to only include 2bets (i.e. the first preflop raise) then you'll need to include a check for "holdem_hand_player_statistics.flg_p_first_raise" in your columns as well.