Calculated field based on query table????

Calculated field based on query table????

Hi,

I have a query table that consolidates several tables.
I need to make a calculation based on all the data grouped in the query table. 

It seems I can not link a query table to a new table and then add a custom formula field. 
I can not add a custom formula in the query table too.

Any advice?

Thanks.