stats breakdown per number of players dealt in the hand

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 breakdown per number of players dealt in the hand

Postby acquilani » Mon Nov 15, 2010 9:43 am

Hi,

I'm quite new here, but I'm trying to understand how PT3 works. I tried to figure this out by myself, but I can't understand... can someone help?

- I have a database with a lot of players and NL hands
- the hands were played at various stakes (NL4,6,10,20)

I want to have a report where:

- for each row I have the number of players that were dealt in the hands (from 2 to 10)
- in the column I would like to put info like: hands played, rake paid, amount won and so on
- I would like to not use filters for this, because I already have to use the filters to breakdown these stats by Limit (I want to see the numbers at 2/4, at 3/6.. and so on)

If someone gives me some insight, then I might be able to continue by myself, but at the moment I'm stuck and I don't know what to do.

Thanks
acquilani
 
Posts: 5
Joined: Sun Oct 31, 2010 6:42 pm

Re: stats breakdown per number of players dealt in the hand

Postby kraada » Mon Nov 15, 2010 10:01 am

The way to do this is to build a custom statistic first and use that in a custom report.

Assuming you want to be able to use any HUD statistics here in this report, you'll want to create this stat in the Holdem Cash Player Statistics section. You'll need to build a new column which I'll call cnt_players_gb, with definition: holdem_hand_summary.cnt_players - and then you want to set the summary type to Count Unique, and check the "Group By" box (that's important, this won't work otherwise!). The group by box tells PT3 to group all results by the value in that field.

Then create a statistic in the Statistics tab called Players (Grouped By), the description can be whatever you like, for the value expression you want just "cnt_players_gb" (without the quotes). On the format tab give it a title (what will appear at the top of the column in the report), and a width that matches (if you don't use anything too long something in the 50-60 range is probably good - if it appears to squished by default you can change it later easily).

For the format you want: format('{1} Players', format_number(cnt_players_gb, 0, false, false)) in the top box, and you can leave the bottom box blank.

Save the stat, and add it to a custom report on the Reports tab, then any other statistic you add will be broken down by number of players dealt into the hand.

For more on custom statistics and reports (including some walkthroughs with screenshots that may be useful to you here), see the Tutorial: Using Custom Statistics and Reports.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: stats breakdown per number of players dealt in the hand

Postby acquilani » Mon Nov 15, 2010 1:05 pm

That's a fantastic help!
Thank you for your prompt reply and btw, it works perfectly.
Now I'm understading more stuff here.
Cheers.
acquilani
 
Posts: 5
Joined: Sun Oct 31, 2010 6:42 pm


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

Who is online

Users browsing this forum: No registered users and 0 guests