aggregated statistics versus a group of opponents

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

Moderators: WhiteRider, kraada, Flag_Hippo, morny, Moderators

aggregated statistics versus a group of opponents

Postby loosefish » Thu Feb 05, 2026 7:19 am

Hello.
I regularly check my stats (eg, BB/100 in HU, in SB as well as in BB).

I would like to have these HU stats , but aggregated versus a certain group of opponents.
e.g., measure BB/100 on HU, in SB as well as in BB, as an aggregated figure against all opponents for which I have less than 100 hands (which I will call the "recreative players" Group), and aggregated figure against all opponents for which I have more than 100 hands (which I will call the "regs" Group)

How can we do it in PT4?

It is a useful feature avalaible with some competitors of PT4, so it would be very important to be able to do it in PT4.

Thank you by advance.
loosefish
 
Posts: 19
Joined: Fri Jul 18, 2008 8:21 pm

Re: aggregated statistics versus a group of opponents

Postby Flag_Hippo » Sat Feb 07, 2026 6:39 am

Try this filter:

Code: Select all
tourney_hand_player_statistics.cnt_players = 2 and tourney_hand_player_statistics.id_hand in (SELECT thps.id_hand FROM tourney_hand_player_statistics thps INNER JOIN tourney_cache tc ON thps.id_player = tc.id_player WHERE thps.flg_hero = false GROUP BY thps.id_hand, thps.id_player HAVING sum(tc.cnt_hands) < 100)

You can use this expression filter in a custom report by clicking on the 'Filters' link and selecting 'Add New Expression Filters'.
Flag_Hippo
Moderator
 
Posts: 17039
Joined: Tue Jan 31, 2012 7:50 am

Re: aggregated statistics versus a group of opponents

Postby loosefish » Thu Feb 12, 2026 4:42 am

Thank you for the answer.
I took a few days to make several attempts, but it seems that PT4 does not manage to show stats with this filter. It seems to be working (for hours) and not being able to conclude (cf screenshots). I even tried with only one day of data, but still the same situation.
Do I have to do something differently ?
Attachments
Capture d’écran 2026-02-12 093925.png
(23.89 KiB) Downloaded 607 times
Capture d’écran 2026-02-12 093325.png
(3.15 KiB) Downloaded 600 times
loosefish
 
Posts: 19
Joined: Fri Jul 18, 2008 8:21 pm

Re: aggregated statistics versus a group of opponents

Postby Flag_Hippo » Thu Feb 12, 2026 6:34 am

I've tested the filter and it works with near instant results on a small database. If you are using any built-in filters do not use them as they may not work well combined with the expression filter. If you want to use any additional filters add them as expression filters. Also the subquery is performance intensive and will take longer the larger the database is.
Flag_Hippo
Moderator
 
Posts: 17039
Joined: Tue Jan 31, 2012 7:50 am

Re: aggregated statistics versus a group of opponents

Postby loosefish » Sun Feb 15, 2026 6:22 am

I don't know why, but it stalls when I do it on my side (actually, i have never seen it finishing the calculation and showing the stats).
On the example below, I removed all filters and chose only one day stats (yesterday), so only a few hundred hands. Do you have an idea of what creates this delay on my side?
Attachments
Capture d’écran 2026-02-15 112207.png
(57.78 KiB) Downloaded 544 times
loosefish
 
Posts: 19
Joined: Fri Jul 18, 2008 8:21 pm

Re: aggregated statistics versus a group of opponents

Postby Flag_Hippo » Mon Feb 16, 2026 1:22 pm

You are still using built-in filters:

Game: Holdem
Date: Yesterday
Flags: {unknown}


Click 'Clear All Filters Above' and try again and let it run with no filters except the expression filter. If you want to use any additional filters later you will need to add them as expression filters.
Flag_Hippo
Moderator
 
Posts: 17039
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 6 guests