Filter for particular villain in a particular position

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

Moderators: WhiteRider, kraada, Flag_Hippo, morny, Moderators

Filter for particular villain in a particular position

Postby carl91 » Thu Dec 19, 2024 5:07 pm

Hi there,

I'm trying to work out how to set up a filter for a specific villain being in a specific position. So currently I am running a hand report where Hero is the BB but I want to specify a particular villain to be in the SB. I assume it's an expression filter or combination of expression filters but I can't work out which ones to use.

Thanks.
carl91
 
Posts: 56
Joined: Wed Jan 03, 2018 4:25 am

Re: Filter for particular villain in a particular position

Postby Flag_Hippo » Fri Dec 20, 2024 7:06 am

Cash games:
Code: Select all
cash_hand_player_statistics.id_hand in (SELECT chps.id_hand from cash_hand_player_statistics chps, player p where chps.position = 9 and chps.id_player = p.id_player and p.player_name = 'Villain')

Tournaments:
Code: Select all
tourney_hand_player_statistics.id_hand in (SELECT thps.id_hand from tourney_hand_player_statistics thps, player p where thps.position = 9 and thps.id_player = p.id_player and p.player_name = 'Villain')

Replace Villain with a screen name and leave the single quotes - those are needed.
Flag_Hippo
Moderator
 
Posts: 17120
Joined: Tue Jan 31, 2012 7:50 am

Re: Filter for particular villain in a particular position

Postby carl91 » Fri Dec 20, 2024 4:56 pm

Awesome, thanks.

Now how do I specify that players 0 to 6 don't limp first in.
carl91
 
Posts: 56
Joined: Wed Jan 03, 2018 4:25 am

Re: Filter for particular villain in a particular position

Postby Flag_Hippo » Sat Dec 21, 2024 7:02 am

Presumably you don't want them raising either? For that you can use:

Code: Select all
cash_hand_summary.str_actors_p LIKE '9%'

which means that the SB was the first player to VPIP - see this post for more information on how the actors and aggressors strings work.
Flag_Hippo
Moderator
 
Posts: 17120
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 0 guests