I think you're trying to place the custom expression directly in the "summarize" box. You need to place it in a custom column. This article may also help:
A quick note: In v52 and older you can't add a custom column after aggregation unless you have a "group by " clause defined but in v53 you can.