PokerStars 2010 VPP 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

Re: PokerStars 2010 VPP Custom Stat Question

Postby WhiteRider » Mon Jan 04, 2010 5:27 am

You can do it - that's just what most stats are like in that section.
Have a look at the Use of 'SUM' section in this part of the tutorial.

I'll update the tutorial to make it a bit clearer when I have time. It's relatively new, so if you find anything else you don't understand please let me know. Can you give me a link to the specific post where you saw this, thanks.: "HCPS stats are based on the number of times a certain action or event occurred."
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: PokerStars 2010 VPP Custom Stat Question

Postby marko3xl3 » Mon Jan 04, 2010 10:29 pm

Oh awesome, I'll get started on it as soon as I get some free time. I usually work full time but had a long holiday do nothing session so I have to catch up on a business front a little.

But here's the link to the post where you mentioned that "HCPS stats are based on the number of times a certain action or event occurred...":
viewtopic.php?f=45&t=8028&p=94574#p85982

It's in the third paragraph of the post.
marko3xl3
 
Posts: 6
Joined: Tue Dec 22, 2009 10:57 pm

Re: PokerStars 2010 VPP Custom Stat Question

Postby WhiteRider » Tue Jan 05, 2010 6:12 am

Thanks - that's from my old tutorial, and when I have time to move it to the new Tutorial - Custom Reports and Statistics I'll re-word it. I've just added a note for now, so that it doesn't say that they're always like that.
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: PokerStars 2010 VPP Custom Stat Question

Postby mikew » Sat Jan 09, 2010 8:40 am

from 2p2, this is the code someone wrote for HEM:

Code: Select all
<Stat GroupName="Misc" ColumnName="Stars 6x VPP 2010" ColumnName="VPP 2010" ValueExpressions="sum(round(cast(((cast(pkh.rakeamount as numeric)*6)/100)/pkh.numberofplayers as numeric),2)) as NewStarsVPPS2" Evaluate="NewStarsVPPS2" ColumnHeader="VPP 2010" ColumnFormat="0.00" ColumnWidth="*" Tooltip="New VPP" />

<Stat GroupName="Misc" ColumnName="Stars 6x VPP per Hand 2010" ValueExpressions="sum(round(cast(((cast(pkh.rakeamount as numeric)*6)/100)/pkh.numberofplayers as numeric),2)) as NewStarsVPPS2" Evaluate="NewStarsVPPS2/1.0/TotalHands" ColumnHeader="New Stars\nVPPS\nPer Hand 2010" ColumnFormat="0.00" ColumnWidth="*" Tooltip="Stars VPP Points earned per hand based on new calculation" />


seems they are just doing (rake*6/100)/players

can it be that hard to add into pt3?
mikew
 
Posts: 56
Joined: Sat Jan 03, 2009 12:41 am

Re: PokerStars 2010 VPP Custom Stat Question

Postby kraada » Sat Jan 09, 2010 9:45 am

No, though I'm not sure why the /100 is listed there; it was my understanding that it was Rake * 6 divided amongst the players. Maybe that was VPP/100?

Regardless, use this in the HCPS columns section to get the same stat (and note that for 6max and heads up you'd want a 5.5x version):

sum(if[holdem_hand_summary.amt_rake > 0, holdem_hand_summary.amt_rake * 6 / holdem_hand_summary.cnt_players, 0])

Then create a stat using that column. I thought someone was submitting this to the repository already; I'll look into getting that approved if it's pending.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: PokerStars 2010 VPP Custom Stat Question

Postby mikew » Tue Jan 12, 2010 12:52 am

is it possible to customize it, like

if ( InStr(limit, "6 max") )
rake *5.5
else
rake*6

?
mikew
 
Posts: 56
Joined: Sat Jan 03, 2009 12:41 am

Re: PokerStars 2010 VPP Custom Stat Question

Postby WhiteRider » Tue Jan 12, 2010 5:38 am

You can use an expression like this:

holdem_limit.limit_name LIKE '%(6 max)'

..to find limit names which end in (6 max).
The % represents any zero or more characters when you use LIKE.
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: PokerStars 2010 VPP Custom Stat Question

Postby mikew » Wed Jan 13, 2010 9:37 pm

bah cant figure it out. hopefully someone builds this stat soon for the repository
mikew
 
Posts: 56
Joined: Sat Jan 03, 2009 12:41 am

Re: PokerStars 2010 VPP Custom Stat Question

Postby redeyes173 » Fri Jan 15, 2010 3:39 am

i think the way just per MGR works fine, pls try my stats, they should work fine
redeyes173
 
Posts: 19
Joined: Mon Jan 26, 2009 5:19 am

Re: PokerStars 2010 VPP Custom Stat Question

Postby kraada » Fri Jan 15, 2010 9:47 am

There is a 2010 VPP stat in the repository now; I haven't tested it though myself.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Previous

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

Who is online

Users browsing this forum: No registered users and 1 guest