stats arranged by month for Cash Player Statistics custom re

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

stats arranged by month for Cash Player Statistics custom re

Postby rowhousepd » Wed Aug 04, 2010 2:28 am

I'd like to create a very simple Cash Player Statistic report that shows how I played chronologically by month. So in the left column would be the month, and every column to the right of it would be the player stats (vpip, pfr, af, etc.)

Basically I'd be able to see how I was playing this month, vs last month, vs 2 months ago, and so on. Is this possible?
rowhousepd
 
Posts: 329
Joined: Sun Mar 22, 2009 4:00 am
Location: Philadelphia, PA

Re: stats arranged by month for Cash Player Statistics custom re

Postby kraada » Wed Aug 04, 2010 8:56 am

Yes, you'll need to create a custom statistic and a couple of custom columns.

You'll want these two columns, both of which you need to be type Count Unique with Group By checked.

date_played_month: dateextract_month[datefix_fromutc[holdem_hand_summary.date_start]]

and

date_played_year: dateextract_year[datefix_fromutc[holdem_hand_summary.date_start]]

Then create the statistic with the value expression:
(date_played_year * 100) + date_played_month

Top format line:
format('{1} {2}', lookup_from_id(date_played_month, 'month'), format_number(date_played_year, 0, false, false) )

And bottom format line:
format('{1} Month(s)', date_played_month)

Fill in title/width/name/description however you choose.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: stats arranged by month for Cash Player Statistics custom re

Postby rowhousepd » Wed Aug 04, 2010 5:23 pm

You rock! Wow. That was easy. Thanks so much. :)
rowhousepd
 
Posts: 329
Joined: Sun Mar 22, 2009 4:00 am
Location: Philadelphia, PA

Re: stats arranged by month for Cash Player Statistics custom re

Postby kraada » Thu Aug 05, 2010 8:40 am

You're welcome :)
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