I'm simply trying to count the number of times a player faced limpers. The built in column cnt_p_faced_limpers is either overcomplicated or wrong, or both. I wrote my own version that disagrees with it, so I'm trying to understand the difference.
Build in column: cnt_p_faced_limpers
sum( if[ ((NOT holdem_hand_player_statistics.flg_p_face_raise) OR holdem_hand_player_statistics.flg_p_limp OR holdem_hand_player_statistics.flg_p_first_raise) AND NOT holdem_hand_player_statistics.flg_p_open_opp AND lookup_actions_p.action <> '', 1 , 0 ] )
First, this is overcomplicated. The "OR holdem_hand_player_statistics.flg_p_limp OR holdem_hand_player_statistics.flg_p_first_raise" is completely unnecessary, because if either of these things happened, then the player did not face a raise. I created a duplicate column with this cut-down formula which has the same results as the original:
cnt_p_faced_limpers2
sum( if[ (NOT holdem_hand_player_statistics.flg_p_face_raise AND NOT holdem_hand_player_statistics.flg_p_open_opp AND lookup_actions_p.action <> '', 1 , 0 ] )
However, I don't understand the point of the last clause (nor do I understand what it does) but I can't see how it's necessary. If a player is not facing a raise, but they did not have the opportunity to open, then clearly they must be facing limpers. When I remove the last clause, the numbers are no longer the same -- specifically, the following stat has a higher count:
cnt_p_faced_limpers3
sum( if[ (NOT holdem_hand_player_statistics.flg_p_face_raise AND NOT holdem_hand_player_statistics.flg_p_open_opp, 1 , 0 ] )
I'm lost here :(
-Everett
