General custom stats 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

General custom stats question

Postby theblitz » Wed Sep 16, 2009 4:48 am

A general question:

Can I create a new column which I then add to an already existing build in report.

Specifically, I am talking about creating a column for the tournaments report. I would like that column to be position/no_of_players so as to give me my relative position in the tourney.
Would I then be able to add this to the standard report in the tournaments tab?
theblitz
 
Posts: 32
Joined: Sat May 10, 2008 2:33 pm

Re: General custom stats question

Postby kraada » Wed Sep 16, 2009 8:50 am

Sure, what you do is you create the column, then you build a stat using the column, then once you save the stat and apply the changes, you click the little wrench icon at the top right of the report you want to edit. Assuming you built the stat in the right section, it should now be in the list for you to add.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: General custom stats question

Postby theblitz » Wed Sep 16, 2009 11:01 am

Just out of interest:
Would the column be calculated at time of use or when the table is populated?
theblitz
 
Posts: 32
Joined: Sat May 10, 2008 2:33 pm

Re: General custom stats question

Postby kraada » Wed Sep 16, 2009 11:29 am

Each time a report is needed the stats required for it are recalculated. If possible PT3 uses the cache, but if not, it recalculates everything.
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 1 guest