Page 1 of 1

Show stats as cases/sample

PostPosted: Thu Mar 20, 2025 4:51 pm
by ru_ruu_ru
Hello, I would like to know if there's a way for the statistics in the report to appear as cases/sample instead of the already calculated sum.

Something like VPIP 150/200 instead of VPIP 75.

Thanks!

Re: Show stats as cases/sample

PostPosted: Fri Mar 21, 2025 6:46 am
by Flag_Hippo
To achieve that duplicate the VPIP statistic, change the 'Format Type' in the copy to 'Expression' and enter this:

Code: Select all
format('{1}/{2}', format_number(cnt_vpip,0,false,false), format_number(cnt_hands - cnt_walks,0,false,false))

Re: Show stats as cases/sample

PostPosted: Fri Mar 21, 2025 12:49 pm
by ru_ruu_ru
thanks a lot! Now I have 2 more stats that I want to see in that way but they are like x/x, I tried to replace those values in that expression for example

format('{1}/{2}', format_number(x,0,false,false), format_number(x,0,false,false))

But it didn't worked, how can I do it? There is some library with the expressions to learn about for making customs stats?

Thanks!!!

Re: Show stats as cases/sample

PostPosted: Fri Mar 21, 2025 1:47 pm
by Flag_Hippo
ru_ruu_ru wrote:thanks a lot! Now I have 2 more stats that I want to see in that way but they are like x/x, I tried to replace those values in that expression for example

format('{1}/{2}', format_number(x,0,false,false), format_number(x,0,false,false))

But it didn't worked, how can I do it?

You need to replace 'x' with the column names used in the statistics original value expression. These columns have the values for the sample sizes you want to display. So if for example you were doing this for 'CBet Flop' then you would use cnt_f_cbet & cnt_f_cbet_opp.
ru_ruu_ru wrote:There is some library with the expressions to learn about for making customs stats?

This guide covers the basics on custom statistics creation and this guide goes into more detail. While the latter was written for PokerTracker 3 and the user interface is different the techniques still apply to PokerTracker 4. Format expressions are covered in this post.