Filter all the hands I lost to a SET

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

Moderators: WhiteRider, kraada, Flag_Hippo, morny, Moderators

Filter all the hands I lost to a SET

Postby Kev_ » Mon Aug 28, 2023 3:06 pm

Hello,
I'm new to PT4 software and to database queries.
Is it possible to create a quick filter to show only the hands I lost to a SET or TRIPS in my database?
I did a manual filtering for "winning hand = Three of a kind" but would love to find a more elegant solution to this.

Thank you!
Kev_
 
Posts: 2
Joined: Sat Nov 19, 2022 11:45 am

Re: Filter all the hands I lost to a SET

Postby Flag_Hippo » Tue Aug 29, 2023 5:19 am

That can be done with a custom expression filter in a custom report:

Guide: Creating My Reports

Code: Select all
(not cash_hand_player_statistics.flg_won_hand and cash_hand_player_statistics.flg_showdown) and cash_hand_player_statistics.id_hand in (SELECT chps.id_hand from cash_hand_player_statistics chps, cash_hand_player_combinations chpc where chps.id_player = chpc.id_player and chps.id_hand = chpc.id_hand and chps.flg_won_hand and chpc.flg_r_threeoak)

You can use this expression filter by clicking on the 'Filters' link and selecting 'Add New Expression Filters' (substitute 'cash' with 'tourney' if you are in a tournament report). If you need it see this guide for the basics on custom statistics/filters creation and this guide for a deeper walkthrough. While the latter was written for PokerTracker 3 and the user interface is different the techniques still apply to PokerTracker 4.
Flag_Hippo
Moderator
 
Posts: 17141
Joined: Tue Jan 31, 2012 7:50 am

Re: Filter all the hands I lost to a SET

Postby Kev_ » Tue Aug 29, 2023 11:07 am

This is so cool! I need to learn this!
Thank you so much!

PS: After running the filter I noticed that there are some results where the HERO is the winner. How can I exclude these?
Kev_
 
Posts: 2
Joined: Sat Nov 19, 2022 11:45 am

Re: Filter all the hands I lost to a SET

Postby Flag_Hippo » Tue Aug 29, 2023 12:43 pm

I don't see any hands like that. Can you please attach a hand history where you are seeing this or send it via PM.
Flag_Hippo
Moderator
 
Posts: 17141
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