report to sort by day of week

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

report to sort by day of week

Postby majonyjony » Thu Mar 04, 2010 11:54 am

there is any report to sort by day of week?
and by the hour?

TY
majonyjony
 
Posts: 116
Joined: Wed Oct 08, 2008 4:01 am

Re: report to sort by day of week

Postby kraada » Thu Mar 04, 2010 2:00 pm

Yes, go to the Sessions tab and choose Sessions - Details from the drop down.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: report to sort by day of week

Postby majonyjony » Thu Mar 04, 2010 8:56 pm

Search for Sort by days of the week Monday, Tuesday ....
To report or filter.
I want to see difference weekend vs other days
majonyjony
 
Posts: 116
Joined: Wed Oct 08, 2008 4:01 am

Re: report to sort by day of week

Postby WhiteRider » Fri Mar 05, 2010 5:59 am

You can do that in a custom report - you might be able to do it with a clever filter, but if you create a new stat to display the day of the week the hands were played you could display/sort that in a report.
How you do this depends on what you want to see, but for instance in the Holdem Cash Player Statistics a column like this works:

dateextract_dow[datefix_fromutc[holdem_hand_summary.date_played]]

This will produce a number from 0 to 6 for days of the week.
You can then either display that or use it to filter your custom report.

Tutorial - Custom Reports and Statistics
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: report to sort by day of week

Postby kraada » Mon Mar 08, 2010 9:09 pm

WhiteRider wrote:This will produce a number from 0 to 6 for days of the week.


Just to clarify further: 0 is Sunday, 1 is Monday, etc.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: report to sort by day of week

Postby JimmyM69 » Sun Mar 14, 2010 9:23 am

Is it possible to create a Custom Report to display tourney results by "day on which the tourney started", please?
Jas
JimmyM69
 
Posts: 140
Joined: Tue Mar 04, 2008 8:22 am

Re: report to sort by day of week

Postby kraada » Sun Mar 14, 2010 9:28 am

Use:
dateextract_dow[datefix_fromutc[tourney_holdem_summary.date_start]]

instead when making the equivalent tournament statistic and it should work properly.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: report to sort by day of week

Postby JimmyM69 » Sun Mar 14, 2010 9:43 am

Thanks for reverting so quickly, kraada, but, when I insert the dateextract_dow[datefix_fromutc[tourney_holdem_summary.date_start]]
into the "Edit Report Filter" window on the Tournament Reports tab, I get "Expression is NOT valid!" message.
What am I doing wrong, please?
JimmyM69
 
Posts: 140
Joined: Tue Mar 04, 2008 8:22 am

Re: report to sort by day of week

Postby kraada » Sun Mar 14, 2010 9:54 am

You either need to create a stat that groups by and uses that value then use that in the report, or when you filter, filter to a specific day.

dateextract_dow[datefix_fromutc[tourney_holdem_summary.date_start]] = 0 works and will filter to Sundays.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY


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

Who is online

Users browsing this forum: No registered users and 0 guests