In my extraction layer, I have a large data set (sales by Site, SKU & day). In most applications that I will be creating, I will need to show year over year comparisons. In apps where I will need to have sales by day, which are few and far between, I know that I can do a set analysis to create variables that show sales for the selected time period and the same time period last year. I expect that I could do this for data aggregated by week and month as well.
I have access to the fiscal calendar which has columns showing the date and the match date for the prior year, as shown below:
From a system/app performance perspective, would it be better to use the set analysis or to add the sales from the prior year as another column in the transformation layer?