Category Archives: Power Query

Reversing row order in Excel data

There are two simple approaches in reversing row order. One is to add an extra column with serial numbers and then sort on that column in descending order. This works for small amount of data. For large data it is best to import it in Power Query and choose Transform tab – Reverse Rows.

reversing row order in Excel data

Benefit of Power Query? It works on a smaller sample of data and then applies the transformation when you choose Save and Load option. This is much faster than getting all the data and then trying to sort it (which is the first method).

Why is this required? Usually required with logs where the first transactions or rows are at the bottom. So the data is received in reverse chronological order. Twitter feeds, Timeline Updates, Live blogs – all follow this pattern.

This method works independent of the time-stamp column. What is wrong with timestamp? It may be in different time formats, some rows may have same timestamp and some rows may have no timestamp at all.

What did I learn today: Power Query Preview Hyperlink

What a brilliant feature, which was lying right in front of me for months, but I did not notice it. In Power Query Preview dialog, every field name has a hyperlink. NOTICE THAT. Click on a column name to bring that column into view.
Now you never need to struggle with horizontal scrolling in complex data sets.

This is a GIF animation. Some colors are smudged due to GIF limitations.

Power Query Hyperlink

Have you noticed the hyperlinks which appear in formula syntax tooltip in Excel?
Find out what that does and you will be amazed. Read this article for details.