Discuss how to create custom stats, reports and HUD profiles and share your creations.
Moderators: WhiteRider, kraada, Flag_Hippo, morny, Moderators
by Alergenic » Thu Apr 23, 2015 12:32 pm
Hi. I am interested in stat that will show number of hands I have played the day I am playing. I can see my number of hands played n certain table with stat "Hands", but I would like to know what is my total number of hands played today on all of the tables.
-
Alergenic
-
- Posts: 21
- Joined: Tue Nov 12, 2013 3:13 pm
by 4StarGen » Thu Apr 23, 2015 1:19 pm
Try this
- Code: Select all
sum( if[ (now() at time zone 'GMT') - (interval '24 hours ') < cash_hand_player_statistics.date_played AND cash_hand_player_statistics.id_hand > 0, 1, 0 ])
-
4StarGen
-
- Posts: 945
- Joined: Sat Mar 08, 2014 6:58 am
-
by Alergenic » Thu Apr 23, 2015 2:06 pm
I got Invalid Value Expression when trying this.
-
Alergenic
-
- Posts: 21
- Joined: Tue Nov 12, 2013 3:13 pm
by 4StarGen » Thu Apr 23, 2015 2:28 pm
-
4StarGen
-
- Posts: 945
- Joined: Sat Mar 08, 2014 6:58 am
-
by Alergenic » Thu Apr 23, 2015 2:38 pm
I am not shure I did everything correct. So I created new column with that formula. Then I adden New stat, that shows that new column number. When I opened the table, I got some error message, but that stat was displayed. But number is showed is actually same number that I see in Hands stat (Number of hands played on this exact table).
-
Alergenic
-
- Posts: 21
- Joined: Tue Nov 12, 2013 3:13 pm
by kraada » Thu Apr 23, 2015 5:20 pm
That shouldn't be showing lifetime hands - are you looking at a live table or the replayer?
-
kraada
- Moderator
-
- Posts: 54431
- Joined: Wed Mar 05, 2008 2:32 am
- Location: NY
by Alergenic » Fri Apr 24, 2015 7:58 am
I am looking for lifetime hands, not in replier. Stat like Hands, but for whole session.
-
Alergenic
-
- Posts: 21
- Joined: Tue Nov 12, 2013 3:13 pm
by kraada » Fri Apr 24, 2015 3:17 pm
Make sure you don't have "cache" ticked - this stat won't work right if you cache it.
-
kraada
- Moderator
-
- Posts: 54431
- Joined: Wed Mar 05, 2008 2:32 am
- Location: NY
by Alergenic » Sat Apr 25, 2015 5:39 am
Thank You! I have unchecked "cache". Now it starts without any errors, but it still shows hand number played on the particular table, not a sum of all hands played.
-
Alergenic
-
- Posts: 21
- Joined: Tue Nov 12, 2013 3:13 pm
by 4StarGen » Sat Apr 25, 2015 5:43 am
I don't think you can create a Hero HUD stat that displays hands played today, because PT4 queries the DB in a specifical way for Hero in order to display session stats.
I'm not aware on any workaround, so my stat work on a report but not on your HUD
-
4StarGen
-
- Posts: 945
- Joined: Sat Mar 08, 2014 6:58 am
-
Return to Custom Stats, Reports and HUD Profiles
Users browsing this forum: No registered users and 26 guests