Show stats as cases/sample

Discuss how to create custom stats, reports and HUD profiles and share your creations.

Moderators: WhiteRider, kraada, Flag_Hippo, morny, Moderators

Show stats as cases/sample

Postby ru_ruu_ru » Thu Mar 20, 2025 4:51 pm

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!
ru_ruu_ru
 
Posts: 2
Joined: Tue Jan 26, 2021 3:50 pm

Re: Show stats as cases/sample

Postby Flag_Hippo » Fri Mar 21, 2025 6:46 am

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))
Flag_Hippo
Moderator
 
Posts: 15784
Joined: Tue Jan 31, 2012 7:50 am

Re: Show stats as cases/sample

Postby ru_ruu_ru » Fri Mar 21, 2025 12:49 pm

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!!!
ru_ruu_ru
 
Posts: 2
Joined: Tue Jan 26, 2021 3:50 pm

Re: Show stats as cases/sample

Postby Flag_Hippo » Fri Mar 21, 2025 1:47 pm

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.
Flag_Hippo
Moderator
 
Posts: 15784
Joined: Tue Jan 31, 2012 7:50 am


Return to Custom Stats, Reports and HUD Profiles

Who is online

Users browsing this forum: No registered users and 46 guests

cron