For this to work, we need a Calendar table, or in another name a date table.
Why isn't one of our existing columns in our data good? Because: -we need a table which contains all dates without skipping non-business days, holidays etc so all 365 days in a year.-all the dates must occur only once…