Expression filter for fish or regs

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

Moderators: WhiteRider, kraada, Flag_Hippo, morny, Moderators

Expression filter for fish or regs

Postby J005 » Wed Oct 18, 2023 5:34 am

Hi,

I'm looking for an expression filter so to only filter hands vs fish, HU pots, or 3Way HU pots vs fish.
I have created a table with a list of regs, called "reglist_table" in the PT4 database using pgAdmin. Everyone that isn't in this list, is a fish.
Now I want to filter only hands vs fish (or regs) so I can do some database analysis about population tendencies.
What expression filter could I use to select only hands fish or regs in this table?

Otherwise, what expression filter could I use to only filter hands vs a group of players, provided I know their usernames? (eg. "player1", "player2", "player3")
J005
 
Posts: 5
Joined: Mon Feb 15, 2021 7:18 am

Re: Expression filter for fish or regs

Postby Flag_Hippo » Thu Oct 19, 2023 3:55 am

J005 wrote:Otherwise, what expression filter could I use to only filter hands vs a group of players, provided I know their usernames? (eg. "player1", "player2", "player3")

To see your hands where specific players were dealt in you can use this expression filter:

Code: Select all
cash_hand_player_statistics.id_hand in (SELECT chps.id_hand from cash_hand_player_statistics chps, player p where chps.id_player = p.id_player and (p.player_name = 'player1' or p.player_name = 'player2'))

You will need to replace all instances of "cash" with "tourney" if you are in a tournament report.
Flag_Hippo
Moderator
 
Posts: 17102
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 1 guest