reprot with new stat

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

reprot with new stat

Postby marvin » Tue Dec 22, 2009 7:36 pm

if i built a stat like "bet on flop oop" how can i see it about my session in a report?
i.e: if i see SESSIONS-DISPLAY "SESSIONS - BY TABLE"
AVAIBLE Stats are only "$/100, $/hour, Amount won........Tabe, table sessions" how can i do?
also if i go to REPORT and i search a stat to inert in report stat, i find my stat (i saved it in HOS Em cash sessions) but if i run the report it show the other stats that i have inserted but not that my stat.
how i can do?
marvin
 
Posts: 327
Joined: Tue Jul 08, 2008 10:17 am

Re: reprot with new stat

Postby WhiteRider » Wed Dec 23, 2009 5:28 am

The sessions reports are based on the session sections of stats, not the Holdem Cash Player Statistics section, which I guess is where you created your stat? (Info on Sections)
You can add your stat to reports on the Hands or Positions tabs for instance (details in the tutorial I linked), or a custom report as you have done.
To see your stat in reports you need to configure the column title and width fields on the Format tab in your stat.
See this section of the tutorial.
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: reprot with new stat

Postby marvin » Wed Dec 23, 2009 7:37 am

this stat:
bet oop BUILT IN section HOLD EM CASH SESSION and HOLD EM CASH SESSIONS
COLUMNS:
bet_oop
sum(if[holdem_hand_player_statistics.flg_f_bet and not holdem_hand_player_detail.flg_f_has_position, 1, 0])

ceck_oop
sum(if[holdem_hand_player_statistics.flg_f_check and not holdem_hand_player_detail.flg_f_has_position, 1, 0])

STAT:
bet oop
((bet_oop) / (check_oop+bet_oop)) * 100

IF I RUN REPORT IN SECTION
HOLD EM CASH SESSIONS it show me a stat, but i wish to see it for each single session, then i have tried to run it in section HOLD EM CASH SESSIONS, inserting the same stat (taken by the proper section) an table name.
IT GIVES ME ERROR: UNABLE to execute query...... IS TOO LONG FOR COPY, IF IS NECESSARY (but i hope i have done soem stupid error) I CAN TAKE A SNAPSHOT, TELL ME WHERE I MUST SEND IT...
marvin
 
Posts: 327
Joined: Tue Jul 08, 2008 10:17 am

Re: reprot with new stat

Postby WhiteRider » Wed Dec 23, 2009 5:01 pm

In 'Holdem Cash Session' the stats refer to a single session, so you should remove the SUM() part.

e.g.
In Holdem Cash Sessions
cnt_bet_oop =
sum(if[holdem_hand_player_statistics.flg_f_bet and not holdem_hand_player_detail.flg_f_has_position, 1, 0])

In Holdem Cash Session
flg_bet_oop =
holdem_hand_player_statistics.flg_f_bet and not holdem_hand_player_detail.flg_f_has_position

Please read the post about sections that I linked you to, and the information in this post talks about the same idea - it talks about Holdem Cash Player Statistics and Holdem Cash Hands, but the same principals apply.
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK


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

Who is online

Users browsing this forum: No registered users and 0 guests