I have a datatable which I created by importing a csv file into the datatable. I want to do calculations on the table based on Date. for example, create a new field that has the average of a column, by date. How should/can I do this?
i.e.
the final product of an example would be
Date | amount | Average of amount by date
---------------------------------------------------
Date1 25 25
Date2 3 4.5
Date2 6 4.5
Date3 5 9
Date3 10 9
Date3 12 9
Where the column Average of amount by date is a new column.
i.e.
the final product of an example would be
Date | amount | Average of amount by date
---------------------------------------------------
Date1 25 25
Date2 3 4.5
Date2 6 4.5
Date3 5 9
Date3 10 9
Date3 12 9
Where the column Average of amount by date is a new column.