Salut Pierre-Yves,
Pour un besoin similaire, j'ai configuré la même Query que toi. ça semble logique, mais j'ai pris le temps de comprendre pourquoi ça ne fonctionne pas, avant de trouver une solution de contournement que je partage volontiers en anglais :
The aggregate functions don't work with simple fields, only with collections :


The average profile age can be calculated by creating a Profile collection using Additional data in the main query and the Enrichment activity :
- In your main query add as an additional data a constant text field labeled 'Collection Link' :

- Add an Enrichment activity. In advanced Relations, Add an element with this definition :

- Add new additional data with the profile collection we just created :

- In the new window that pops up, go to Data and Create Element as follow :

Confirm all and run workflow. The field Avg(Age) should be added to Profile Collection.