Need some help.
I would like to have a stat that tellse me the % of pot bet on flop, turn and river when they won and lost the hand.
I want to create it in a similar way then this stat:
Percentage of the Pot bet on the Flop
if( cnt_f_bet > 0 , amt_total_avg_f_bet / cnt_f_bet , 0 )
I think I need to create two new colums
cnt_f_bet_won and amt_total_avg_f_bet_won
With the new stat then being
Percentage of the Pot bet on the Flop when won
if( cnt_f_bet_won > 0 , amt_total_avg_f_bet_won / cnt_f_bet_won , 0 )
I have been trying to define these two colums but had no success so would need some help with this:
cnt_f_bet_won
tried:
sum(if[holdem_hand_player_statistics.flg_f_bet and holdem_hand_player_statistics.flg_won_hand = 1 , 1, 0])
and
sum(if[holdem_hand_player_statistics.flg_won_hand = 1 , holdem_hand_player_statistics.flg_f_bet, 0])
but get this "not a valid SQL Statement" when trying to validate
Any help much appreciated.
Thor
