Preflop Aggressor Position

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

Moderators: WhiteRider, kraada, Flag_Hippo, morny, Moderators

Preflop Aggressor Position

Postby overboard45 » Sat Mar 01, 2025 9:33 pm

I would like to pull the stat for the preflop aggressor position in a Hand Report. The column I'm looking for is val_p_raise_aggressor_pos which is found the PokerTracker Database Schema documentation. When I create a column and a stat, the hand report has the following error:

"Unable to execute query: Fatal Error; Reason ERROR: column "cash_hand_summary.id_hand" must appear in the GROUP BY clause or be used in an aggregate function LINE 1:SELECT(cash_hand_summary.id_hand) as "id_hand",..."

The rest of the message is cutoff, and this error does not appear unless the new stat is present on the report.

Hand Column Name: p_raise_aggressor_pos
Hand Column Expression: cash_hand_player_statistics.val_p_raise_aggressor_pos


Stat: PF Aggressor
p_raise_aggressor_pos
overboard45
 
Posts: 5
Joined: Sun Aug 17, 2008 5:49 pm

Re: Preflop Aggressor Position

Postby Flag_Hippo » Sun Mar 02, 2025 6:45 am

That's working for me. Is the 'Group By' option in the column enabled or not? If it's enabled please turn it off and refresh the report.
Flag_Hippo
Moderator
 
Posts: 17092
Joined: Tue Jan 31, 2012 7:50 am

Re: Preflop Aggressor Position

Postby overboard45 » Sun Mar 02, 2025 10:23 am

Thank you @Flag_Hippo. Removing the "Group By' option in the column tab allows the stat to work. Nice job
overboard45
 
Posts: 5
Joined: Sun Aug 17, 2008 5:49 pm

Re: Preflop Aggressor Position

Postby overboard45 » Sun Mar 02, 2025 8:17 pm

I have another question regarding the preflop aggressor. I would also like to get the player name of the aggressor in the hand report.

I wasn't able to get anything to work or find other examples on the forum.

Could you show how to code a cash hand column for this?
overboard45
 
Posts: 5
Joined: Sun Aug 17, 2008 5:49 pm

Re: Preflop Aggressor Position

Postby Flag_Hippo » Mon Mar 03, 2025 7:01 am

Unfortunately I don't know or have any SQL for that.
Flag_Hippo
Moderator
 
Posts: 17092
Joined: Tue Jan 31, 2012 7:50 am


Return to Custom Stats, Reports and HUD Profiles

Who is online

Users browsing this forum: No registered users and 0 guests