Forum Discussion
Add year column
- Anonymous8 years ago
This question was solved by Ashish. The solution can be found here:
Thanks for your response parry2k. Would I have to:
- add a column for 'Year'
- then connect Power BI to the modified Excel spreadsheet
- then run 'Edit Query' and run through all my 'Applied Steps' again?
Or is there a quicker way? I've got five years of data that I must add the year to (2012 - 2016).
Should I keep the data for different years in separate spreadsheets or merge them all into one?
Here are all the steps I applied to transform the data (right side of screen):
no you don't need to change anything in your power query steps, just make sure the step where you use removed columns that year (new column) is not removed.
Basically you can go to each step to make sure year column is part of model, no need to change anything.
- Anonymous8 years agoNot applicable
I've added a year column, along with data from other years.
Do you have any advice on how I'd transform the data to make it organised like it was before? With the Year column in place I'm just getting tangled up when I try to transform the data into the nice table I had when there was just one year of data.
Thanks so much. Here's how the data looked when there was just one year. I assumed that I just needed to add another column with the year: