Forum Discussion
Anonymous
8 years agoNot applicable
Add year column
Hi Power BI experts :-) How do I allocate existing data to a year? Do I create a new column in the Excel spreadsheet? Or the Query Editor? I've created a dashboard from an Excel spreadsheet o...
- Anonymous8 years ago
This question was solved by Ashish. The solution can be found here:
parry2k
8 years agoSuper User
I guess the best way is to add year column in excel sheet, although you can still create column in powerbi and assing year value to it but you have to put the logic which year value to assign to each row, so coming from excel will make it easy.
Anonymous
8 years agoNot applicable
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):