Steal vs Me report

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

Moderators: WhiteRider, kraada, Flag_Hippo, morny, Moderators

Steal vs Me report

Postby kydechuk01 » Thu Dec 13, 2012 11:26 am

I'm trying to construct custom report for players in my base like this

Player | Hands | Att to Steal - CO | Att to Steal - BTN | Att to Steal - SB

I already made custom stats for Steals, and now Iam confused how to correctly finish the expression filter to sort only hands where I was on the blinds (position 8 to 9).

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 = 'My Name' and XXXXX? )

Kraada, can you help me? :roll:
kydechuk01
 
Posts: 174
Joined: Sat Jun 27, 2009 4:30 am
Location: Russia

Re: Steal vs Me report

Postby kraada » Thu Dec 13, 2012 1:18 pm

(chps.position = 8 or chps.position = 9)

You'll want the ()s to keep that piece together also.
kraada
Moderator
 
Posts: 54431
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Steal vs Me report

Postby kydechuk01 » Thu Dec 13, 2012 1:39 pm

kraada wrote:(chps.position = 8 or chps.position = 9)

You'll want the ()s to keep that piece together also.


Oh Yeah! It works, thanks! Tried p.position and it was wrong.

BTW this is a very good kind of reports... =)
kydechuk01
 
Posts: 174
Joined: Sat Jun 27, 2009 4:30 am
Location: Russia

Re: Steal vs Me report

Postby kydechuk01 » Thu Dec 13, 2012 3:06 pm

And another question. Can I build a custom column based on the expression like above? At least theoretically, for using it by the special version of the HUD in the replayer (there I can wait while it calculates).

Example:
cnt_steal_att_co_vs_me:

sum(if[cash_hand_player_statistics.flg_steal_att and cash_hand_player_statistics.position = 1 AND (player_name 'MyName' position = 8 OR player_name = 'MyName' position = 9) , 1, 0])
kydechuk01
 
Posts: 174
Joined: Sat Jun 27, 2009 4:30 am
Location: Russia

Re: Steal vs Me report

Postby kraada » Thu Dec 13, 2012 6:17 pm

That's not going to work as you have it formulated - the subselect gets the id_hands for the hands that match you - what you've done is just make it so that it only adds up if the player is you and for all players that aren't you that will just not add anything.
kraada
Moderator
 
Posts: 54431
Joined: Wed Mar 05, 2008 2:32 am
Location: NY


Return to Custom Stats, Reports and HUD Profiles

Who is online

Users browsing this forum: No registered users and 37 guests

cron
highfalutin