First Custom stat question :/

Forum for users that want to write their own custom queries against the PT database either via the Structured Query Language (SQL) or using the PT3 custom stats/reports interface.

Moderator: Moderators

First Custom stat question :/

Postby player34 » Mon Jun 21, 2010 3:34 am

hi,
first, i wanted to thanks the dev team for PT3 .. its a powerful tool :)

next, i try to develop a custom stat, i have read the "How to" read 2 or 3 specific thread in the forum ... and i still dont success to create it.

The statistics i want is pretty simple : i want to know the percentage of the player Call allin preflop in Cash-game

sometimes a player with less stack than my allin can call ... So i try to count the folded situation and the raised situation .. the call situation is then the inverse percentage

i have created "new column" for that :

cnt_p_faceAllin :
sum( if[holdem_hand_player_statistics.enum_face_allin_action = 'p',1, 0 ] )

cnt_p_faceAllin_fold :
sum(if[holdem_hand_player_statistics.enum_face_allin='P' AND
holdem_hand_player_statistics.enum_face_allin_action='F', 1, 0])

cnt_p_faceAllin_raise :
sum(if[holdem_hand_player_statistics.enum_face_allin='P' AND
holdem_hand_player_statistics.enum_face_allin_action='R', 1, 0])

then my "new stat" :
call Allin Preflop :
100-(cnt_p_face_allin_fold+cnt_p_face_allin_raise)/(cnt_p_face_allin)*100
i put /2%f in format.

unfortunatly this stat do not seems to work :( ... This stat is equal to 100 for all player

plz, is someone can tell me what im doing wrong ?
player34
 
Posts: 4
Joined: Mon Jun 21, 2010 3:15 am

Re: First Custom stat question :/

Postby kraada » Mon Jun 21, 2010 9:12 am

You want sum( if[holdem_hand_player_statistics.enum_face_allin_action = 'p',1, 0 ] ) to be sum( if[holdem_hand_player_statistics.enum_face_allin = 'P',1, 0 ] ) - it should work then I think.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: First Custom stat question :/

Postby player34 » Tue Jun 22, 2010 11:20 am

OK, silly me ...

i changed this ... but it still doesnt works :(

all player in database have call Allin Preflop = 100 ... i dont understand
so i created a new stat

FaceAllinPreflop
(cnt_p_face_allin)
format : /%.2f

where cnt_p_face_allin is
sum( if[holdem_hand_player_statistics.enum_face_allin= 'p',1, 0 ] )

then All player have equal to 0 ...
So just to be sure ...

if someone is allin before the player preflop : the databse : holdem_hand_player_statistics.enum_face_allin= 'p' is equal to 1 ??? :roll:
player34
 
Posts: 4
Joined: Mon Jun 21, 2010 3:15 am

Re: First Custom stat question :/

Postby kraada » Tue Jun 22, 2010 2:17 pm

That should be working - what poker site are you playing at?
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: First Custom stat question :/

Postby player34 » Tue Jun 22, 2010 2:19 pm

player34
 
Posts: 4
Joined: Mon Jun 21, 2010 3:15 am

Re: First Custom stat question :/

Postby kraada » Tue Jun 22, 2010 3:55 pm

That should be working - please export and attach the stat to a support ticket so that we can investigate further for you - Windows 7 is not going to affect this at all.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: First Custom stat question :/

Postby player34 » Tue Jun 22, 2010 4:02 pm

done :/
player34
 
Posts: 4
Joined: Mon Jun 21, 2010 3:15 am

Re: First Custom stat question :/

Postby kraada » Tue Jun 22, 2010 5:53 pm

Thanks, we'll get back to you in the ticket.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY


Return to Custom Stats, Reports, and SQL [Read Only]

Who is online

Users browsing this forum: No registered users and 0 guests