W% Action pre flop

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

W% Action pre flop

Postby raph156 » Fri Feb 26, 2010 12:56 pm

Hello,

% action P
Stats exprsseion: ((cnt_p_call + cnt_p_raise) / (cnt_p_total_actions)) * 100
work

Stats exprsseion: ((cnt_win_when_p_call + cnt_win_when_p_raise) / (cnt_p_total_actions)) * 100
((cnt_win_when_p_call + cnt_win_when_p_raise) / (cnt_p_call_opp + cnt_p_raise_opp)) * 100
Didnt work. Why?

Thanks in advance for your help.
raph156
 
Posts: 159
Joined: Tue Feb 09, 2010 3:22 pm

Re: W% Action pre flop

Postby kraada » Fri Feb 26, 2010 2:07 pm

Because those columns don't exist - see the columns tab, the columns need to exist there to be used in a stat.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: W% Action pre flop

Postby raph156 » Sat Feb 27, 2010 6:13 am

Hello,

I have create the column : cnt_win_p_action
sum( if[ (holdem_hand_player_statistics.cnt_p_call > 0) and (holdem_hand_player_statistics.flg_won_hand), 1, 0] + if[ (holdem_hand_player_statistics.cnt_p_raise > 0) and (holdem_hand_player_statistics.flg_won_hand), 1, 0])
And the stats didnt work.

Thanks in advance for your help.
raph156
 
Posts: 159
Joined: Tue Feb 09, 2010 3:22 pm

Re: W% Action pre flop

Postby kraada » Sat Feb 27, 2010 9:58 am

You can't use multiple if[] statements like that. What you want is:

sum( if[ ((holdem_hand_player_statistics.cnt_p_call > 0) OR (holdem_hand_player_statistics.cnt_p_raise > 0)) and (holdem_hand_player_statistics.flg_won_hand), 1, 0])
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: W% Action pre flop

Postby raph156 » Sat Feb 27, 2010 11:19 am

Hello,

Column:
cnt_p_action
sum((holdem_hand_player_statistics.cnt_p_call) + (holdem_hand_player_statistics.cnt_p_raise))
Stats:
% action P
((cnt_p_call + cnt_p_raise) / (cnt_p_total_actions)) * 100
Works.

Column:
cnt_win_p_action
sum( if[ ((holdem_hand_player_statistics.cnt_p_call > 0) OR (holdem_hand_player_statistics.cnt_p_raise > 0)) and (holdem_hand_player_statistics.flg_won_hand), 1, 0])
Stats:
W% action P
((cnt_win_when_p_call + cnt_win_when_p_raise) / (cnt_p_call + cnt_p_raise)) * 100
Didnt work. What wrong?

Thanks in advance for your help
raph156
 
Posts: 159
Joined: Tue Feb 09, 2010 3:22 pm

Re: W% Action pre flop

Postby kraada » Sat Feb 27, 2010 11:29 am

Do you have the columns cnt_win_when_p_call and cnt_win_when_p_raise?
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: W% Action pre flop

Postby raph156 » Sat Feb 27, 2010 12:33 pm

If thise isnt enought: Column:cnt_win_p_action
I have create
cnt_win_p_call
sum( if[ (holdem_hand_player_statistics.cnt_p_call > 0) and (holdem_hand_player_statistics.flg_won_hand), 1, 0])
cnt_win_p_raise
sum( if[ (holdem_hand_player_statistics.cnt_p_raise > 0) and (holdem_hand_player_statistics.flg_won_hand), 1, 0])

The stats still dont work
raph156
 
Posts: 159
Joined: Tue Feb 09, 2010 3:22 pm

Re: W% Action pre flop

Postby raph156 » Sat Feb 27, 2010 1:12 pm

its ok

Had to add "when"
raph156
 
Posts: 159
Joined: Tue Feb 09, 2010 3:22 pm

Re: W% Action pre flop

Postby WhiteRider » Sat Feb 27, 2010 2:48 pm

So you have everything working now?
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK


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

Who is online

Users browsing this forum: No registered users and 0 guests