Custom Filter.

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

Custom Filter.

Postby phonix4 » Wed Sep 09, 2009 11:53 am

I've been sent a filter by Kraada To help me. I'm trying to add this to my custom report but i can only find to add this as an expression and not as a filter as such it is not working at the minute.

How can i apply it as a filter????
phonix4
 
Posts: 60
Joined: Wed Sep 02, 2009 9:57 pm

Re: Custom Filter.

Postby phonix4 » Wed Sep 09, 2009 12:00 pm

Ok this is the filter i've been told to add to a custom report.

player.id_player IN (SELECT p.id_player FROM player p, holdem_hand_player_statistics hhps WHERE p.id_player = hhps.id_player AND
hhps.date_played::date = localtimestamp::date)

I'm trying to add this but it's simply not working.
Could i have a step by step click by click as to how to add this filter please????
phonix4
 
Posts: 60
Joined: Wed Sep 02, 2009 9:57 pm

Re: Custom Filter.

Postby WhiteRider » Wed Sep 09, 2009 12:07 pm

Click the blue Filters link in the report config area on the Reports tab, and enter the expression in the Filter Expression field, then click Save so that it appears in the top section.

Please read the Custom Reports guide.
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: Custom Filter.

Postby phonix4 » Wed Sep 09, 2009 1:14 pm

Ok i've imported the report and added this filter but i'm still getting no players. This filter is supposed to filter my lists to show me players i've played today but display their all time stats. am i doing something wrong or is the filter wrong????
phonix4
 
Posts: 60
Joined: Wed Sep 02, 2009 9:57 pm

Re: Custom Filter.

Postby WhiteRider » Wed Sep 09, 2009 1:44 pm

What section is the report in?
It needs to be Holdem Cash Player Statistics.

Have you unchecked 'filter on active player'?

Try starting a new report in that section and just add a few simple stats like Player, Hands, VP$IP and run that and see if the report works.
Then add the filter to that.
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK


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

Who is online

Users browsing this forum: No registered users and 0 guests