You could add a sum attribute to your project entity. It could be a calculated Attribute (Most of the time not recommended) or a stored one that you update in changes of associated objects.
Is this what you mean:
You can do this with attributes of the datasource, but not with attributes that a linked by association.
You will have to do the calculation in a microflow and use that microflow as the datasource of the DataGrid.