cancel
Showing results for
Did you mean:
Frequent Visitor

## Want to show sum of row values in calculated column

I want the sum of values in a calculated column from other column. For easy understand i have put here a table format for example and Please let me know how can we achieve this result:

i have this table with ID and Score Column, what I want is a calculated column that is running score which shows the sum for first two rows then in second row of calculated column i want the sum of other two rows and then in third row i want the sum for all three and so on.

ID       Score

1          10

2          15

3          20

Expecting result

ID       Score    calculated column (running score)

1          10                  10

2          15                  25 (sum of two rows 10+15)

3          20                  45 (sum of all three and so on)

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team

## Re: Want to show sum of row values in calculated column

You may refer to below formula:

Column =
CALCULATE (
SUM ( Table1[Score] ),
FILTER ( Table1, Table1[ID] <= EARLIER ( Table1[ID] ) )
)

Regards,

Cherie

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
4 REPLIES 4
Highlighted
Super User

## Re: Want to show sum of row values in calculated column

Try this for your calc column:

RunningScore =
CALCULATE ( SUM ( Table1[Score] ), Table1[ID] <= EARLIER ( Table1[ID] ) )

Community Support Team

## Re: Want to show sum of row values in calculated column

You may refer to below formula:

Column =
CALCULATE (
SUM ( Table1[Score] ),
FILTER ( Table1, Table1[ID] <= EARLIER ( Table1[ID] ) )
)

Regards,

Cherie

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Frequent Visitor

## Re: Want to show sum of row values in calculated column

Hi,

Thanks for your valuable time but this not worked for my expectation and i got the solution from @v-cherch-msft.

Frequent Visitor

## Re: Want to show sum of row values in calculated column

Thank you so much  @v-cherch-msft .. this worked as per my expectation ....