My monthly sales data look like this.(Wish I can draw table but it's not letting me put one in or I don't know how)
Table has two columns date and units sold. Date just have first day of month. But not all months have entry. So it might be 3/1/2017 has 20 units. then no row for 4/1/2017. And 5/1/2017 has 100 units.
I need to calculate last 3 months average for example. But there is no row for some months. How would I include the missing month into the average calculation? I can do group and average but that is leaving out the missing month in calculation.
Thanks in advance.
LEFT JOIN
it to your table. – PM 77-1