Question : Aggregate

I would like to return query below with the additional column which multiplies one of the column called "CalculatedRate" with previous record of the same column.  (Initial previous value is 1)

1:
2:
3:
Dim DividendList4Final = From dividendItem In DividendList4Update
Select dividendItem


Here is the part I could do with For but I would like to do this in Linq and want to see it in same result
1:
2:
3:
4:
5:
6:
7:
                Dim rate As New List(Of Double)
                Dim currentRate As Double = 1
                For Each dividendItem In DividendList4Final
                    currentRate *= dividendItem.dividendCalculatedRate
                    rate.Add(currentRate)
                Next


Thank you for your time and attention
Attachments:
 
multiply
multiply
 

Answer : Aggregate

Try this on second row

=RunningValue(field!<valuefield name goes here>,Sum, Nothing"

and if that doesn't work then just use a regular sum

=Sum(field!<valuefield name goes here>)

Random Solutions  
 
programming4us programming4us