
Effortlessly unpivot data with Excel Power Query
When our customer came to me asking how we could load their historical General Leder (GL) data for the past four years, I knew I was in for a treat. They sent me an Excel file that was an extract of their current ERP system. The file was essentially a trial balance with 47 accounting periods presented in the columns. To make things more interesting, the file also had a sheet per Cost Center, each representing one of their stores or departments; 72 in total. These Cost Centers were defined as Global Dimension 1 during our implementation cycle. Here is what the data looked like:

My task was to take this raw data and transform it so that we could use it to create the General Journal entries. My tool of choice for this kind of work is Excel Power Query, which allows you to import or connect to external data and shape it to meet your needs.
No matter what kind of retailer you are, if you’re struggling to migrate a large amount of historical data, you may be able to use these steps to solve your problems. Here’s how:
1. Create the query to prepare for data transformation
Excel Power Pivot provides a powerful tool for efficiently transforming data. With just a few clicks, I created a query to combine all tabs into a single dataset. I opened a new Excel sheet and selected the file provided by my customer as the source data.

I’m now presented with the navigator where I need to select the main folder and click on “Transform Data.”

Now I have my Query where I can remove the columns I don’t need. First, I can select those columns and use the “Remove Columns” function in the toolbar.

Next, I must expand the data so that all my accounting periods and amounts are populated in the dataset and ready for the next transformation.
I need to select the “Data” column and click on the icon to the right, making sure all my columns are selected before clicking “OK.”

I can then promote my first row as headers.

2. Unpivot the columns
Now that my dataset has been defined, it’s time to unpivot the columns to get a new data set that I can use to create General Journal entries with. For this step, I need to select all the columns I want to unpivot then select the “unpivot columns” function in the “Transform” menu.

My columns have now been unpivoted!

3. Load the data into Excel
The last step is to simply load the data into Excel! All I need to do is to select the “Close & Load” function in the “Home” menu.

So, now I have a dataset that can be used easily as the source to create the General Journal entries and post to the General Ledger!
I want to point out that this dataset had just over 100,000 entries and it only took minutes for me to get from the source file to this dataset that I can now use.

By LS Retail
** Hotline: 092 636 2468
** Email: info@naviworld.com.vn
** Fanpage: NaviWorldVietnam
Featured Post
From ERP to Agentic AI: NaviWorld Achieves Microsoft’s Agentic Business Solutions Specialisation
August 5, 2026From ERP to Agentic AI: NaviWorld Achieves Microsoft’s Agentic Business Solutions Specialisation For more than two decades, NaviWorld Vietnam has been helping organizations transform the way they op…
Savinest Officially Launches Its ERP System, A Pioneering Milestone in Khanh Hoa Salanganes Nest’s Digital Transformation Journey
July 2, 2026Savinest Officially Launches Its ERP System, A Pioneering Milestone in Khanh Hoa Salanganes Nest’s Digital Transformation Journey On July 1, 2026, Khanh Hoa Salanganes Nest Soft Drink Joint Stoc…
Charting the Future Together: A Night to Remember at Direction Asia 2026.
May 14, 2026Charting the Future Together: A Night to Remember at Direction Asia 2026. Last night, under the warm glow of Vietnamese hospitality, NaviWorld Vietnam had the immense honor of hosting the official …
AIG & AHS Officially Go Live with Microsoft Dynamics 365 Business Central
May 4, 2026AIG & AHS Officially Go Live with Microsoft Dynamics 365 Business Central Following the project kick‑off held in late 2025, Asia Ingredients Group (AIG), Asia Hoa Son Corporation (AHS), and Navi…
Four Regional Microsoft Dynamics Partners Sign Landmark MOU to Launch ONE ALLIANCE — A New Global Force in AI Business Solutions
April 30, 2026Four Regional Microsoft Dynamics Partners Sign Landmark MOU to Launch ONE ALLIANCE — A New Global Force in AI Business Solutions NaviWorld, Navtech Group, Optimus Business Transformation, and Retail…
Powered by Our People: NaviWorld Vietnam Named LS Retail Diamond Partner 2026
April 28, 2026Powered by Our People: NaviWorld Vietnam Named LS Retail Diamond Partner 2026 We are proud to announce that NaviWorld Vietnam has been recognized as an LS Retail Diamond Partner for 2026 — the highe…