I was going through tableau tutorial and there I came across this Moving Average. I know that If I want to Calculate moving average I can do that from "Quick Calculation Table ( Where the default Moving average is for previous 2 days)".
Below shown Image is the Quick Calculation of Moving Average for previous 3 Days.
Here is the sample data from the above shown figure:
So, If I want to Calculate previous 3 days moving average for 3rd Jan 2014 ( Including the current date), the calculation will be like:
(2955+4391+2481)/3= 3255 ,Which is the result I am also Getting in Tableau Screenshot Show below :
Now I am finding the moving average for 4th Jan 2014 ( Including the Current Date), the calculation will follow like :
(4391+2418+2815)/3= 3,208, But I am not getting the same Result in the Tableau as shown in the Screenshot below :
Here as you can see that the Moving average is 3,145 and my calculated moving average is 3,208.
Why tableau results are not same as mine manually calculated result ?
Below the The Screenshot of my "Edit Calculation box " Tableau: