No, that is not valid syntax.
Take a look at the Tutorial: Custom Reports and Statistics for an overview of how to make custom stats, and the Custom Stats Guide goes into much more detail, with examples. The latter was written for PT3, but the same principals apply to PT4.