Forum Discussion
deathseeker
9 years agoRegular Visitor
12 columns => 2 columns (SQL command or Unpivot?)
Hello!!! I have a table connected to SQL that outputs a column for each month. For working it better in Excel, I need to transforme that 12 columns to only 2... a first one for the values and th...
- 9 years ago
Using the Unpivot feature in the Query Editor should work, but just keep your eye on how long it takes. If it can handle the transformation in an acceptable time, this will be the easist way to manage it.
If you are talking big data volumes then SQL will be faster, but the SQL will be more complex.
Phil_Seamark
9 years agoMicrosoft Employee
Using the Unpivot feature in the Query Editor should work, but just keep your eye on how long it takes. If it can handle the transformation in an acceptable time, this will be the easist way to manage it.
If you are talking big data volumes then SQL will be faster, but the SQL will be more complex.
deathseeker
9 years agoRegular Visitor
So SQL it may be the best solutions in the long term, because I wil not to worry if the Query Editor handles diferent databases.
Thank you so much.