Forum Discussion
Keep Original Sort Order Of A Column Table.
- 2 years ago
Hi Qasim_Jan ,
Before you perform your pivot step in Power Query, go to the Add Column tab > Index Column > From 1. This will index your table in the current sort order.
After you pivot , you can then sort by the index column and year to get the data in the exact order you want.
Pete
Hi Qasim_Jan ,
Before you perform your pivot step in Power Query, go to the Add Column tab > Index Column > From 1. This will index your table in the current sort order.
After you pivot , you can then sort by the index column and year to get the data in the exact order you want.
Pete
- Qasim_Jan2 years agoFrequent Visitor
Hi BA_Pete ,
Your suggestion to add an index column before the pivot and then sorting by the index column and year was spot on. It worked like a charm!
Your expertise and willingness to assist are truly appreciated. Thank you once again for your prompt and effective help.
Best regards,
Qasim