Filter "vs specific player"

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

Moderators: WhiteRider, kraada, Flag_Hippo, morny, Moderators

Re: Filter "vs specific player"

Postby cntgetmedown » Wed May 29, 2013 11:03 am

Thanks kraada.
cntgetmedown
 
Posts: 97
Joined: Mon Apr 07, 2008 1:45 pm

Re: Filter "vs specific player"

Postby cntgetmedown » Fri Oct 24, 2014 6:20 am

Hi. Today I was trying to use this same filter with VPIP=true for a pair of players. So say for example I would want to run a report with hands where a pair of players were sitting at my table, how would I do this?

I tried taking the original code and adding another and condition to the end. So this:

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 = 'Villain Name' and chps.flg_vpip)

to this:

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 = 'Villain Name1' and p.player_name = 'Villain Name2' and chps.flg_vpip)

The second expression validates, but I get no hand results. I know for sure that I have logged hands vs the accounts in question. Can you tell me if this is possible and how to fix the code?

Thanks.
cntgetmedown
 
Posts: 97
Joined: Mon Apr 07, 2008 1:45 pm

Re: Filter "vs specific player"

Postby cntgetmedown » Fri Oct 24, 2014 8:43 am

Also, it would be nice if the player pairs could be filtered by an or condition. For example p1+p2 or p1+p3 etc.
cntgetmedown
 
Posts: 97
Joined: Mon Apr 07, 2008 1:45 pm

Re: Filter "vs specific player"

Postby kraada » Fri Oct 24, 2014 8:55 am

That won't work because each player only has one name -- the way it's written it tests each player in the hand who put money in to see if their name matches both of those names (which never happens.

The best way to do this is to just add a second filter for the second player's name same as the first. This will cause the report to take longer as a result, but it's the simplest way to make sure both players are there.
kraada
Moderator
 
Posts: 54431
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Filter "vs specific player"

Postby cntgetmedown » Fri Oct 24, 2014 8:58 am

Ok, thanks, I'll give that try.
cntgetmedown
 
Posts: 97
Joined: Mon Apr 07, 2008 1:45 pm

Re: Filter "vs specific player"

Postby potamito » Sun Dec 06, 2015 12:13 pm

kraada wrote:There wasn't a filter for that in PT3, but you can do this with a custom filter expression in the My Reports area.

The filter:

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 = 'Villain Name')

Will filter to all hands where Villain Name was dealt in. Note that you need the single quotes around the opponent's screen name.

You can use this in the My Reports tab then filter as you'd like further to see things from your perspective.

I can do this in Result/Hero vs Villain but im not intrested on just see the hands where both of us were dealt in, i want to filter the hands when we actually played a hand.
potamito
 
Posts: 802
Joined: Wed Apr 21, 2010 4:20 pm

Re: Filter "vs specific player"

Postby BillGatesIII » Sun Dec 06, 2015 4:37 pm

Code: Select all
cash_hand_player_statistics.flg_vpip
and 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 = 'Villain Name'
  and chps.flg_vpip)
BillGatesIII
 
Posts: 740
Joined: Fri Dec 16, 2011 6:50 pm

Re: Filter "vs specific player"

Postby klippan » Sat Jan 09, 2016 10:52 am

hi,

I understand how I can filter for "vs specific player" on the My Reports Tab, but can I do anything similar on the Statistics tab as well?

Thanks,
klippan
 
Posts: 6
Joined: Sat Jan 09, 2016 10:51 am

Re: Filter "vs specific player"

Postby kraada » Mon Jan 11, 2016 9:50 am

No, the filter expressions are only available on the My Reports page.
kraada
Moderator
 
Posts: 54431
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Filter "vs specific player"

Postby sawwee » Mon Jan 11, 2016 2:12 pm

You can create a custom stat and use it on "Statistics" tab.
sawwee
 
Posts: 513
Joined: Thu Dec 18, 2008 11:59 pm

PreviousNext

Return to Custom Stats, Reports and HUD Profiles

Who is online

Users browsing this forum: No registered users and 19 guests

cron