How to Convert Antenna Data into Separate RSRP Columns in Power Query
Question details
The user needs to transform rows containing 'New Antenna IDs' and 'RSRP' values into a wide table format, creating a separate column for each unique antenna ID.

- Product
- Excel Power Query
- Device & OS
- not provided
- Scenario
- Data transformation and preparation where sensor or telemetry data (like RSRP) needs to be pivoted from rows into separate columns to compare values side-by-side.
- Observed behavior
- The source dataset is currently formatted in rows, preventing efficient column-based comparison of RSRP values for different antennas.
Ensure your source data is formatted as an Excel Table (e.g., named 'Table1') and loaded into the Power Query Editor before applying advanced transformation steps.
Use Power Query Advanced Editor to Transform Columns
Apply custom M code using Table.Group, Table.Sort, and Table.FromColumns to dynamically pivot the RSRP data into separate columns.
This method uses advanced M code functions to group the data by the Antenna ID, sort the resulting groups to ensure proper alignment, and then convert the data into individual columns.
Open your Excel workbook, select your dataset, go to the Data tab, and click 'From Table/Range' to open the Power Query Editor.
In the Power Query Editor, navigate to the Home tab and click on 'Advanced Editor' to view the underlying M code.
Replace the code with a script that groups the source table by 'New Antenna ID', extracts 'RSRP' values, sorts the table, and generates the layout using Table.FromColumns.
Click 'Done' to apply the script. Review the transformed wide table in the editor, then click 'Close & Load' on the Home tab to output the data back to Excel.

Pivot Columns via Power Query UI
Use the built-in Pivot Column interface to achieve the same wide table format without writing manual M code scripts.
Need a Reliable, Free Data Analysis Tool?
If you handle large datasets and need to quickly pivot and reshape rows into columns without complex Power Query scripts, try WPS Office. It provides robust built-in PivotTables and data management tools that are completely free.
- 1. Download and Install: Download WPS Office for free from the official website and install it on your computer.
- 2. Open Your Dataset: Launch WPS Spreadsheet and seamlessly open your existing .xlsx or .csv files.
- 3. Transform Data Easily: Use the Insert > PivotTable feature to drag and drop your Antenna IDs into columns instantly.

Frequently Asked Questions
Why does Table.FromColumns return an error in my M code?
This usually happens if the data lists provided to Table.FromColumns have unequal lengths or if the column name references in your script (like 'RSRPs') do not match the output generated by your grouping step. Verify your column headers.
What does 'Don't Aggregate' mean when pivoting columns?
By default, Power Query attempts to calculate the sum, count, or average of values when pivoting. Selecting 'Don't Aggregate' forces it to extract and display the raw individual values instead of summarizing them.
Can I reshape row data into columns without using Power Query?
Yes. In traditional spreadsheet tools, you can use the built-in PivotTable feature to drag your identifiers to the Columns area and your values to the Values area to create a wide table structure visually.




