Now Target is made up of YYYY_nameOfFile.xlsx and Metric is a key here also. If I am only loading one year (in which case, the Target in the file is static and would always be only one year like 2014 and is the same for the next year and so on.
Below you will see the third, fourth and fifth Target_Tables that have 3 different Years and the Target is going to change Year on Year.
I keep getting synthetic key errors when I load this. I need to separate so they are recognised as different years.
Year is in my Calendar table also.
At the moment, all data is loaded into target and for each metric, all 3 values (2014,2015 and 2016) for that metric are showing in one cell
Target_Table: LOADMetric, Target FROM [$(vSource)\Control\*_Control_Target.xlsx] (ooxml, embeddedlabels, tableis Sheet1);
Target_Table: LOADMetric, Target FROM [$(vSource)\Technology\*_Technology_Target.xlsx] (ooxml, embeddedlabels, tableis Sheet1);
****************************************************************************************** Target_Table: LOADMetric, Target //floor(num(left(FileName(),4))) as Year FROM [$(vSource)\Financial\2014_Financial_Target.xlsx] (ooxml, embeddedlabels, tableis Sheet1);
Target_Table: LOADMetric, Target //floor(num(left(FileName(),4))) as Year FROM [$(vSource)\Financial\2015_Financial_Target.xlsx] (ooxml, embeddedlabels, tableis Sheet1);
Target_Table: LOADMetric, Target //floor(num(left(FileName(),4))) as Year FROM [$(vSource)\Financial\2016_Financial_Target.xlsx] (ooxml, embeddedlabels, tableis Sheet1);