Discuss how to create custom stats, reports and HUD profiles and share your creations.
Moderators: WhiteRider, kraada, Flag_Hippo, morny, Moderators
by Gustinhio » Thu Feb 27, 2025 2:17 pm
Hello,
I'm looking to find a way to have (in tournament) the possibility to create a filter in HU if the players have more than 30 hands or less in my database.
I find the way to filter the players but i don't find the way to do it in hands report
-
Gustinhio
-
- Posts: 10
- Joined: Mon Oct 25, 2021 10:25 am
by Flag_Hippo » Fri Feb 28, 2025 7:11 am
- Code: Select all
tourney_hand_summary.cnt_players = 2 and tourney_hand_player_statistics.id_hand in (select thps.id_hand from tourney_hand_player_statistics thps, tourney_cache tc where thps.id_player = tc.id_player group by thps.id_hand, thps.id_player having ((((sum(tc.cnt_hands))) < 30)) and not thps.flg_hero)
You can use this expression filter in a
custom hand report by clicking on the 'Filters' link and selecting 'Add New Expression Filters'.
-
Flag_Hippo
- Moderator
-
- Posts: 17077
- Joined: Tue Jan 31, 2012 7:50 am
by Gustinhio » Thu Mar 06, 2025 4:48 am
Hello,
I tried this filter unfortunatly it's always staying in loading... and i cannot see any hands
-
Gustinhio
-
- Posts: 10
- Joined: Mon Oct 25, 2021 10:25 am
by Flag_Hippo » Thu Mar 06, 2025 5:39 am
If you are using any built-in filters such as for the number of players please remove them. I included a filter for the number of players in the expression filter for this reason. If you are not using any other filters then this type of filter can still generate a lot of PostgreSQL processing so can take a while to complete if you have a large database. You could also experiment with the filter in a smaller database and check the results returned there.
-
Flag_Hippo
- Moderator
-
- Posts: 17077
- Joined: Tue Jan 31, 2012 7:50 am
Return to Custom Stats, Reports and HUD Profiles
Users browsing this forum: No registered users and 14 guests