I am trying to use a moving average formula but I am getting an error which I assume is because dont have data for all the days.
My dataset excludes dates for players on days that they did not show up, but I want to calculate that day as a 0 for that day.
I can calculate the all the dates I need by grouping by "Date" but how can I complete the dataset and add the missing dates - when I add the missing date the the value(score) would be 0.
For example:
This dataset:
Date Score
1/1/2011 5
1/2/2011 5
1/3/2011 5
1/6/2011 5
1/8/2011 5
Would become this dataset:
Date Score
1/1/2011 5
1/2/2011 5
1/3/2011 5
1/4/2011 0
1/5/2011 0
1/6/2011 5
1/7/2011 0
1/8/2011 5
Thanks.
My dataset excludes dates for players on days that they did not show up, but I want to calculate that day as a 0 for that day.
I can calculate the all the dates I need by grouping by "Date" but how can I complete the dataset and add the missing dates - when I add the missing date the the value(score) would be 0.
For example:
This dataset:
Date Score
1/1/2011 5
1/2/2011 5
1/3/2011 5
1/6/2011 5
1/8/2011 5
Would become this dataset:
Date Score
1/1/2011 5
1/2/2011 5
1/3/2011 5
1/4/2011 0
1/5/2011 0
1/6/2011 5
1/7/2011 0
1/8/2011 5
Thanks.