When playing at Bodog/Ignition, the site substracts rake from the pot on each street played. So, for example, if a players makes a flop 75% cbet, it won't show on PT4 as 75% because rake won't be taken into account. I want to correct that using the site's rake structure. I tried making this column, but I get the error "Error: Unable to execute query: Fatal Error; Reason: ERROR: column "cash_hand_summary.cnt_players" must appear in the GROUP BY clause or be used in an aggregate function LINE 1: ... 0 end))) as "cnt_f_cbet_72_80_rake", ((case when(cash_hand_..."
What I want "pot_menos_rake" to do, is to recalculate the pot to substract the rake. Since rake structure changes depending on the numbers of players dealt into the hand, I need to know how many players there are. After that I substract the rake, taking into account rake cap. If I activate "group by", it doesn't work either although I don't get any error. What should I do?
pot_menos_rake:
if[cash_hand_summary.cnt_players = 2, if[cash_hand_summary.amt_pot_f < 20, 0.95 * cash_hand_summary.amt_pot_f, cash_hand_summary.amt_pot_f - (1 * cash_limit.amt_bb)],
if[cash_hand_summary.cnt_players = 3, if[cash_hand_summary.amt_pot_f < 40, 0.95 * cash_hand_summary.amt_pot_f, cash_hand_summary.amt_pot_f - (2 * cash_limit.amt_bb)],
if[cash_hand_summary.cnt_players >= 4 AND cash_hand_summary.cnt_players <= 5, if[cash_hand_summary.amt_pot_f < 60, 0.95 * cash_hand_summary.amt_pot_f, cash_hand_summary.amt_pot_f - (3 * cash_limit.amt_bb)],
if[cash_hand_summary.cnt_players >= 6, if[cash_hand_summary.amt_pot_f < 80, 0.95 * cash_hand_summary.amt_pot_f, cash_hand_summary.amt_pot_f - (4 * cash_limit.amt_bb)],0]]]]