Hi all,
My question is quite simple, but I have not been able to find the answer in the discussion. I have sales data from the beginning of 2017 up until today's date and I would like to split it into TY and LY. I am trying to eliminate all the dates from 2017 and to be left with 4 columns: Date - starting from 01/01/2018; Department; Sales TY - sales per day this year; Sales LY - the daily sales from 2017 displayed next to the corresponding daily sales from TY. I am trying to do this as it will be easier to later analyse the data in Tableau. I have found this task a bit tricky as some departments aren't reported each day in both years and some of them have closed (not reported anymore OR still being reported as having 0 sales).
Thank you in advance
.
Mihail