Dear all,
I'm playing around with the custom stats that can be created within PokerTracker. I already have a stat (downloaded from the repository some time ago) which calculates the amount of rakeback generated during every given month. What I'd like to do now is to make this stat "conditional", i.e., to calculate the rakeback differently depending on the date (as my RB deal will change in 2012).
Following the tutorials available on the website I eventually ended up with the following two expressions:
if[date_played_month >= March AND date_played_year = 2011 , sum(tourney_holdem_summary.amt_rake * 0.25) , 0]
sum(if[date_played_year = 2011 AND date_played_month >= March , tourney_holdem_summary.amt_rake * 0.25, 0])
Unfortunately none of them can be validated ("The statement is not valid SQL"). I'm obviously making some stupid mistake, but I don't seem to be able to spot it. Could please anyone give me a hint? :)
Cheers,
Fabio
