If you have been using the MICROSOFT EXCEL software for some time, you must have heard or read about the word POWER QUERY.
POWER QUERY IS A DATA SHAPING TOOL WHERE WE CAN BRING THE DATA THROUGH A CONNECTION FROM VARIOUS SOURCES, DO SOME SHAPING SUCH AS REMOVING ROWS, COLUMNS, CHANGING DATA TYPES, TRIMMING THE DATA ETC. AND GET IT FINALLY FOR THE ANALYSIS IN OUR MAIN SOFTWARE SUCH AS MICROSOFT EXCEL OR MICROSOFT POWER BI .
Power Query tool, in fact, has immense powers to shape up the data in the way we want.
We’ll cover a lot of practical problems to sort them with the help of the POWER QUERY.
IN THIS ARTICLE, WE ‘LL LEARN TO CONCATENATE COLUMN DATA INTO A NEW COLUMN
We will take an example to understand the process of concatenating the columns to create a new column.
Let us take a table for the example which we will load from the EXCEL and transform it so that its loaded into POWER QUERY EDITOR.
The table for the example is shown in the picture below.
Read the article mentioned above.
In the navigator, use TRANSFORM DATA and the table would open in the POWER QUERY EDITOR.
The following picture shows the data as it enters the POWER QUERY EDITOR
FIX THE HEADER OF THE TABLE:
We can see that the header is not the one we need.
So follow the steps to change the header and make the first row as header [Which is our header in actual].
Now, our data is ready for the main operation.
STEPS TO TRANSPOSE A TABLE IN POWER QUERY EDITOR:
So, we have successfully converted the columns into rows and rows into columns. [Rows to column or column to rows, both means the same].
You must have notices that only the rows were transposed and not the headings. So how to get the headings also be transposed during the process.
There are a few hacks for that.
1. We already had our headings as a top row which we changed into the HEADERS. If we had kept it the same, the first row would have become the row headers.
2.Transpose the data if we need to have ROW HEADERS instead of COLUMN HEADERS. Now close and apply the power query editing and add the row headers in the main application.
OTHER WAYS TO REACH THIS ARTICLE
YOU MAY LIKE