Okay, I've a two content types "A" and "B". "A" is a parent and have a field referenced(Entity Reference) to the child content type "B". Now I've created a View(Table) with a list of "A". And I want to add a field to show the SUM of field values from the referenced type "B". How to do this? Is it possible to solve with a Rules?
- Under Relationships, add a relationship for the desired field. "Entity Referenced". Not "Entity Referencing".
- Under Fields, add the field you want to sum. Add the relationship in the field settings.
- Under advanced, enable Use Aggregation.
- Under fields, click Aggregation Settings next to the field and choose "Sum".
Okay, I've managed to find a solution via components. But to make component work fine in a loop with a entity referenced fields, add a "Entity is a bundle" condition. Because "Entity is a type" or "Content is a type" doesn't work for me.