Help - PS.it VPPs custom stat

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

Moderators: WhiteRider, kraada, Flag_Hippo, morny, Moderators

Help - PS.it VPPs custom stat

Postby Serverbtest002 » Mon Jul 01, 2013 12:27 pm

I need custom stat in order to calculate VPP on ps.it
In the statistics tab, ander the columns I found amt_vpps
Expression:

sum(CAST( (if[cash_limit.flg_nlpl and cash_limit.amt_bb = .02 and cash_limit.limit_currency = 'USD' and cash_hand_summary.id_site = 100 and cash_hand_player_statistics.amt_bet_ttl > 0, (cash_hand_player_statistics.amt_bet_ttl / cash_hand_summary.amt_pot) * cash_hand_summary.amt_rake * 10, if[cash_limit.flg_nlpl and cash_limit.amt_bb = .05 and cash_limit.limit_currency = 'USD' and cash_hand_summary.id_site = 100 and cash_hand_player_statistics.amt_bet_ttl > 0, (cash_hand_player_statistics.amt_bet_ttl / cash_hand_summary.amt_pot) * cash_hand_summary.amt_rake * 8.5, if[cash_limit.flg_nlpl and cash_limit.amt_bb = .10 and cash_limit.limit_currency = 'USD' and cash_hand_summary.id_site = 100 and cash_hand_player_statistics.amt_bet_ttl > 0, (cash_hand_player_statistics.amt_bet_ttl / cash_hand_summary.amt_pot) * cash_hand_summary.amt_rake * 7, if[cash_limit.flg_nlpl and cash_limit.amt_bb = .02 and cash_limit.limit_currency = 'EUR' and cash_hand_summary.id_site = 100 and cash_hand_player_statistics.amt_bet_ttl > 0, (cash_hand_player_statistics.amt_bet_ttl / cash_hand_summary.amt_pot) * cash_hand_summary.amt_rake * 12, if[cash_limit.flg_nlpl and cash_limit.amt_bb = .05 and cash_limit.limit_currency = 'EUR' and cash_hand_summary.id_site = 100 and cash_hand_player_statistics.amt_bet_ttl > 0, (cash_hand_player_statistics.amt_bet_ttl / cash_hand_summary.amt_pot) * cash_hand_summary.amt_rake * 10, if[cash_limit.flg_nlpl and cash_limit.limit_currency = 'EUR' and cash_hand_summary.id_site = 100 and cash_hand_player_statistics.amt_bet_ttl > 0, (cash_hand_player_statistics.amt_bet_ttl / cash_hand_summary.amt_pot) * cash_hand_summary.amt_rake * 9, if[cash_limit.limit_currency = 'USD' and cash_hand_summary.id_site = 100 and cash_limit.limit_name LIKE '%max%' and cash_hand_player_statistics.amt_bet_ttl > 0, (cash_hand_player_statistics.amt_bet_ttl / cash_hand_summary.amt_pot) * cash_hand_summary.amt_rake * 5.5, if[cash_limit.limit_currency = 'EUR' and cash_hand_summary.id_site = 100 and cash_limit.limit_name LIKE '%max%' and cash_hand_player_statistics.amt_bet_ttl > 0, (cash_hand_player_statistics.amt_bet_ttl / cash_hand_summary.amt_pot) * cash_hand_summary.amt_rake * 7, if[cash_limit.limit_currency = 'GBP' and cash_hand_summary.id_site = 100 and cash_limit.limit_name LIKE '%max%' and cash_hand_player_statistics.amt_bet_ttl > 0, (cash_hand_player_statistics.amt_bet_ttl / cash_hand_summary.amt_pot) * cash_hand_summary.amt_rake * 8.8, if[cash_limit.limit_currency = 'USD' and cash_hand_summary.id_site = 100 and cash_hand_player_statistics.amt_bet_ttl > 0, (cash_hand_player_statistics.amt_bet_ttl / cash_hand_summary.amt_pot) * cash_hand_summary.amt_rake * 6, if[cash_limit.limit_currency = 'EUR' and cash_hand_summary.id_site = 100 and cash_hand_player_statistics.amt_bet_ttl > 0, (cash_hand_player_statistics.amt_bet_ttl / cash_hand_summary.amt_pot) * cash_hand_summary.amt_rake * 8, if[cash_limit.limit_currency = 'GBP' and cash_hand_summary.id_site = 100 and cash_hand_player_statistics.amt_bet_ttl > 0, (cash_hand_player_statistics.amt_bet_ttl / cash_hand_summary.amt_pot) * cash_hand_summary.amt_rake * 10.5,0]]]]]]]]]]]]) AS numeric(11,2) ))

on ps.it you earn 8 VPPs per Euro raked, how do I change the expression?
Ty
Serverbtest002
 
Posts: 5
Joined: Mon Jul 01, 2013 12:23 pm

Re: Help - PS.it VPPs custom stat

Postby kraada » Mon Jul 01, 2013 2:23 pm

Does it vary by stakes at all?
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Help - PS.it VPPs custom stat

Postby Serverbtest002 » Mon Jul 01, 2013 5:30 pm

no
Serverbtest002
 
Posts: 5
Joined: Mon Jul 01, 2013 12:23 pm

Re: Help - PS.it VPPs custom stat

Postby kraada » Tue Jul 02, 2013 8:11 am

Do they offer anything other than euro tables?
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Help - PS.it VPPs custom stat

Postby Serverbtest002 » Wed Jul 03, 2013 6:55 am

No, only Euro
Serverbtest002
 
Posts: 5
Joined: Mon Jul 01, 2013 12:23 pm

Re: Help - PS.it VPPs custom stat

Postby kraada » Wed Jul 03, 2013 8:14 am

Then this will do it:

sum(CAST( (if[cash_hand_summary.id_site = 100 and cash_hand_player_statistics.amt_bet_ttl > 0, (cash_hand_player_statistics.amt_bet_ttl / cash_hand_summary.amt_pot) * cash_hand_summary.amt_rake * 8, 0])

The normal PokerStars.com formula is quite a bit more complicated than it sounds like what PS.it does :)
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Help - PS.it VPPs custom stat

Postby Serverbtest002 » Thu Jul 18, 2013 6:07 pm

I get an error, the statement is not valid SQL

Also I made an error, the VPPs per Euro are 8,5
Serverbtest002
 
Posts: 5
Joined: Mon Jul 01, 2013 12:23 pm

Re: Help - PS.it VPPs custom stat

Postby WhiteRider » Fri Jul 19, 2013 3:33 am

I'm not sure why we need the CAST in this case, so try this:

sum( if[cash_hand_summary.id_site = 100 and cash_hand_player_statistics.amt_bet_ttl > 0, (cash_hand_player_statistics.amt_bet_ttl / cash_hand_summary.amt_pot) * cash_hand_summary.amt_rake * 8.5, 0] )

If we do need the CAST then this:

sum( CAST( if[cash_hand_summary.id_site = 100 and cash_hand_player_statistics.amt_bet_ttl > 0, (cash_hand_player_statistics.amt_bet_ttl / cash_hand_summary.amt_pot) * cash_hand_summary.amt_rake * 8.5, 0] AS numeric(11,2) ))
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: Help - PS.it VPPs custom stat

Postby Serverbtest002 » Fri Jul 19, 2013 5:01 am

perfect ty a lot

Last question, now that I have modified the stat how do I export the new stat with the new column?
Serverbtest002
 
Posts: 5
Joined: Mon Jul 01, 2013 12:23 pm

Re: Help - PS.it VPPs custom stat

Postby kraada » Fri Jul 19, 2013 7:48 am

In the Configure -> Statistics window, highlight the stat and click Options -> Export. The necessary column will be exported as well.
kraada
Moderator
 
Posts: 54430
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 12 guests