I have an entity called "Result" and there is a field "score" in the entity . i want to get the sum of all entries comes in "score" column. and i want to store the total to "grandTotal" field.
This is the formula i have applied. but it doesn't work.
grandTotal = entity\sumRelated('Result', 'score');
Please help me to resolve this issue.
NB: Entity - Result(Label - Result), Field -score(label -Score), Field - grandTotal(label - Grand Total)
This is the formula i have applied. but it doesn't work.
grandTotal = entity\sumRelated('Result', 'score');
Please help me to resolve this issue.
NB: Entity - Result(Label - Result), Field -score(label -Score), Field - grandTotal(label - Grand Total)
Comment