Hand filter - all hands played vs a specific tendecy

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

Moderators: WhiteRider, kraada, Flag_Hippo, morny, Moderators

Hand filter - all hands played vs a specific tendecy

Postby 4StarGen » Wed Oct 01, 2025 7:23 am

I'd like to make a filter that:
- include all players, not only Hero
- filter whenever players plays a hand vs a group of players that has VPIP > 40

How can I do that?
4StarGen
 
Posts: 1019
Joined: Sat Mar 08, 2014 6:58 am

Re: Hand filter - all hands played vs a specific tendecy

Postby Flag_Hippo » Thu Oct 02, 2025 5:41 am

This expression filter will give you hands where there was at least one player with a VPIP greater than 40%:

Code: Select all
cash_hand_player_statistics.id_hand in (select chps.id_hand from cash_hand_player_statistics chps, cash_cache cc where chps.id_player = cc.id_player group by chps.id_hand, chps.id_player having ((sum(cc.cnt_vpip) * 1.0) / (sum(cc.cnt_hands) * 1.0) - sum(cc.cnt_walks) * 1.0) > .4)

Filters that use subqueries like this can generate a lot of PostgreSQL processing so can take a while to complete if you have a large database.
Flag_Hippo
Moderator
 
Posts: 17040
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 8 guests