BoFo wrote:I have done it all, including putting "/%.2f" in the format summary expression. All the validations say: fine.
Now how do I get to use this stat? It does not appear in my "Configure hud / stats".
From the "configure stats" I have tried to put it into eg the "general / player stats", but get an "unable to execute" followed by three lines of red text that leave me no less confused.
I tried to make it a report, but was told: "FATAL ERROR: aggregates not allowed in GROUP BY clause". And a lot more in red letters.
Firstly, you did create it in the 'holdem cash player statistics' section, didn't you?
Check your Columns, and make sure that the 'group by' option isn't checked for any of them.
After you save your stat, you will need to restart the HUD for the new stat to work.
Really I did not do this to make a cbet_success stat. I just tried to learn, in order to make what I really want: A stat showing what a player does to different hole cards, eg high pairs.
I figure the expression should be in the neighbourhood of: "sum((cnt_p_raise if[( id_holecard = TT OR JJ OR QQ OR KK OR AA OR AK), 1 , 0 ]) / (id_holecard = TT OR JJ OR QQ OR KK OR AA OR AK) * 100)" where TT etc means premium holdings. This is of course not valid.
You won't be able to check:
id_holecard = TT OR JJ OR ...
Two things:
1. You would need to do
id_holecard = TT OR id_holecard = JJ OR ...
2. The value of id_holecard isn't TT, etc. It is a numeric value which references the table lookup_hole_cards.
Have a look at the "Hand" stat in the 'holdem cash hand' section to see how this is used. Then if you go to a new Stat and click the 'insert' link and choose the Functions tab, you can see the 'Lookup From Id' function, and the options are listed.
The best way to do it, though, is probably to experiment to find out what the values of id_holecard are for the required pairs.