Power Query Problems

How to Convert Antenna Data into Separate RSRP Columns in Power Query

Olivia MillerOlivia Miller Nov 11, 2026 869 views

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.

Convert Antenna Data into Separate RSRP Columns using Power Query
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.
Before you start

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.

Solution 1Recommended

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.

1
Load Data into Power Query

Open your Excel workbook, select your dataset, go to the Data tab, and click 'From Table/Range' to open the Power Query Editor.

2
Open Advanced Editor

In the Power Query Editor, navigate to the Home tab and click on 'Advanced Editor' to view the underlying M code.

3
Apply M Code Transformation

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.

4
Close and Load

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.

Use Power Query Advanced Editor to Transform Columns
M Code Variable Check: Ensure that the source table name referenced in your M code strictly matches the exact table name in your workbook (e.g., 'Table1').
Free Microsoft Office alternative

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. 1. Download and Install: Download WPS Office for free from the official website and install it on your computer.
  2. 2. Open Your Dataset: Launch WPS Spreadsheet and seamlessly open your existing .xlsx or .csv files.
  3. 3. Transform Data Easily: Use the Insert > PivotTable feature to drag and drop your Antenna IDs into columns instantly.
100% compatible with Microsoft Excel (.xlsx) formatsPowerful built-in PivotTables for instant data reshapingLightweight application with high-speed processing capabilitiesFamiliar spreadsheet interface with zero learning curve
microsoft office alternative - wps office

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.