Sum of values from child table

I want to sum values from a particular column of all child records for a parent record.

What is the easy way to do this?

There is one piece of documentation regarding this in the community but I didnโ€™t get any of it.

Is the solution in line of something like โ€˜selectingโ€™ all the ref_rows and using sum(select())?

Solved Solved
0 6 1,149
1 ACCEPTED SOLUTION

The easiest way

You should have auto generated List type virtual column in parent table, for related child records, something like [Related Childs] when you made REF connection between the table.

Then you can add new virtual column with expression

sum([Related Childs][NameOfChildRecordYouWantToSum])

View solution in original post

6 REPLIES 6

The easiest way

You should have auto generated List type virtual column in parent table, for related child records, something like [Related Childs] when you made REF connection between the table.

Then you can add new virtual column with expression

sum([Related Childs][NameOfChildRecordYouWantToSum])

Okay let me see and try

Thanks!

@Koichi_Tsuji thanks for this!

 

SUM(
     select(
       [Related column][amount], 
       [description] = cuota 30 )
    )

 

 

Please start a new topic for help with this.

Got it @Steve . The formula is working. I cannot delete the message.