Did you create the necessary columns and expressions first? See
this guide for the basics on custom statistics creation and
this guide for a deeper walkthrough. The latter was written for PokerTracker 3 but the techniques all apply to PokerTracker 4, the interface is just slightly different.