Formula Easymorph

Just use the aggregate action.

You should go through the tutorials EasyMorph | Learn how to transform data
The action is described in the first chapter “basics”.