As an example I'll show you how to create a positional version of the stat "3Bet Preflop" for the button position.
Open the Configure Statistics window from the PT3 menu Configure > Configure Stats and select Holdem Cash Player Statistics on the Sections tab.
If you want to adapt an Omaha or Tournament stat then select the appropriate "Player Statistics" section.

Click the Statistics tab and select "3Bet Preflop" from the list of Existing Stats.
The Value Expression field on the right shows which Columns the stat uses.

For the stat "3Bet Preflop" these are "cnt_p_3bet" and "cnt_p_3bet_opp".
These columns count how often the player 3-bet preflop and the number of opportunities they had to 3-bet preflop. To build a version of this stat for the button position only we need to make new versions of those columns which we can then use in a new version of this stat.
Make a note of the column names and then click the Columns tab and select the first column ("cnt_p_3bet") from the list of Existing Columns.
To make a copy of the column click the Dup ("Duplicate") button.

We now have a copy of the column which we can change to fit our needs.
Change the Name to "cnt_p_3bet_btn". (additions in bold)
In this case we want to count only the times that the player was on the button (position 0) when they 3-bet, so we change the Expression to this:
sum(if[holdem_hand_player_statistics.flg_p_3bet AND holdem_hand_player_statistics.position = 0, 1, 0])
Finally update the Description:
Number of times player 3 bet preflop from the button.

Tip! Positions are defined by the number of seats away from the button, so the button is position 0 and the cutoff is position 1, etc. The big blind is always position 8, and the small blind position 9, regardless of table size so that you can easily identify the blind positions.
We now need to repeat this process for the other column: "cnt_p_3bet_opp". Select and Duplicate the column then make the changes like this:
Name = cnt_p_3bet_btn_opp
Expression = sum(if[holdem_hand_player_statistics.flg_p_3bet_opp AND holdem_hand_player_statistics.position = 0, 1, 0])
Description = Number of times player had the opportunity to 3 bet preflop from the button.

Now that we have our two new columns we can make our new stat, so click the Statistics tab again - "3Bet Preflop" should still be selected (if not then reselect it) - and then click the Dup button to make a copy of it.
We need to change the Name of the new stat ("3Bet Preflop Btn") and Description ("Preflop 3Bet Percentage from the button") and then alter the Value Expression to use the new columns we just created:
(cnt_p_3bet_btn / cnt_p_3bet_btn) * 100

We should also update the Format tab - the only change needed here is in the Title field, but if the Format Expression used column names then that would need to be changed too - and the Categories tab - here we just add the Position category.

