How to Open Nested Tables from Power Query in New Sheets

Abstract: Flatten nested tables in Power Query by expanding columns to rows or new columns for direct Excel analysis.

Created: 2026-09-04 by

To open nested tables from Power Query in new Excel sheets, you must expand the nested column by clicking the expand icon in the column header. Select "Expand to New Rows" or "Expand to New Columns" depending on your needs, then click OK. This action flattens the hierarchy, allowing the resulting data to be loaded into a standard worksheet table for further analysis.

Understanding Nested Tables in Power Query

When importing complex data sources such as JSON, XML, or certain CSV formats with embedded lists, Power Query often represents the relationship between parent and child records as a nested table. Instead of showing individual values, the cell contains the word "Table," "List," or "Record." This structure is efficient for storage but unusable for direct Excel functions like VLOOKUP or PivotTables until it is flattened.

Nesting occurs because the data source has a one-to-many or one-to-one relationship that Power Query preserves by default. For instance, if you import an order list where each order contains multiple line items, the line items appear as a nested table within the main order row. Recognizing this structure is the first step toward resolving the display issue. If you are looking to simplify your dataset before expansion, consider reading Slim Down Table Values with Custom Columns in Power Query to reduce unnecessary columns early in the process.

Step-by-Step Expansion Process

The primary method for accessing nested data involves using the graphical interface within the Power Query Editor. Follow these steps to unfold your data:

  • Locate the Target Column: Identify the column containing the nested data. It will typically have an icon in the header area, either a two-way arrow or a small grid symbol.
  • Click the Expand Icon: Click directly on this icon. A dialog box will appear listing all available fields within the nested table.
  • Select Fields to Include: Check the boxes next to the specific columns you wish to bring into the main view. You can use the checkbox at the top to select all fields at once.
  • Choose Expansion Mode: This is the critical decision point. You must choose between "Expand to New Columns" and "Expand to New Rows."

Expanding to new columns creates separate columns for each field in the nested table, effectively merging the child data horizontally. Expanding to new rows duplicates the parent row for each item in the nested list, creating a vertical join. Most users require "Expand to New Rows" to create a flat, relational dataset suitable for Excel reporting.

Determining the Correct Expansion Mode

Choosing the wrong mode can lead to unexpected results or data duplication. Use "Expand to New Columns" when the relationship is one-to-one, meaning each parent record has exactly one corresponding child record. For example, if a customer record contains a single address table, expanding to columns keeps the data compact.

Use "Expand to New Rows" for one-to-many relationships. If an invoice contains five line items, expanding to rows will result in five rows for that single invoice. This is essential for accurate aggregation in PivotTables. Be aware that expanding to new rows increases the total row count significantly if the nested tables contain many items. Always preview the output in the editor to ensure the volume of data remains manageable.

Loading Data to a New Sheet

Once the table structure is flattened to your satisfaction, the next step is moving the data out of the query engine and into a static Excel sheet. By default, Power Query loads data into a connected table within the current workbook. To ensure the data resides in a new sheet for easy access:

  1. Close and Load: Go to the Home tab in the Power Query Editor and click "Close & Load." This creates a new worksheet named after your query.
  2. Close and Load To: Alternatively, click the dropdown arrow next to "Close & Load" and select "Close & Load To..."
  3. Specify Destination: In the dialog box, select "Only Create Connection" if you want to keep it dynamic but not place it on a sheet immediately, or select "Table" and check "New Worksheet" to force it into a fresh sheet.

This approach ensures that your expanded data is isolated from the original query definitions, making it easier to share or format without affecting the underlying refresh logic. If you need to filter this newly created table further, see Mastering Complex Filtering in Excel: Select Only Top Rated for advanced techniques.

Handling Errors During Expansion

Users frequently encounter errors when expanding nested tables, particularly when dealing with inconsistent data structures. The most common error is "Expression.Error: We cannot convert the value null to type List." This happens when some rows have nested data while others are blank or null.

To resolve this, replace nulls with empty lists before expanding. In the Power Query Editor, right-click the nested column and select "Replace Values." Replace null with an empty list represented as {}. This ensures that every row has a valid list object to expand, preventing crashes during the refresh process. Another common issue is mismatched column names. If the schema of the nested table changes between data sources, Power Query may fail to merge the columns. Using the "Advanced Editor" to explicitly define types or using the "Unpivot" feature can sometimes stabilize the structure.

Optimizing Performance

Expanding large nested tables can slow down Excel performance. If your nested tables contain thousands of rows, consider filtering them before expansion. Apply filters in the nested table context by clicking the filter dropdown on a specific column within the nested view. Reducing the dataset size prior to expansion minimizes memory usage and speeds up refresh times. Additionally, avoid expanding columns that are not needed for your final report. Each additional column increases the complexity of the resulting table and can impact calculation speed in Excel.

Frequently Asked Questions

Why does my nested table show "Table" instead of data?

This indicates that the data has not been expanded yet. Power Query displays "Table" to signify that the cell contains a structured object rather than a scalar value. You must manually expand the column using the expand icon to reveal the underlying data fields.

Can I expand a nested table without duplicating parent rows?

Yes, by selecting "Expand to New Columns" instead of "Expand to New Rows." This merges the nested fields into adjacent columns on the same row, preserving the one-to-one relationship. However, this only works if the nested table contains a single record per parent row.

What should I do if the expand button is grayed out?

The expand button is disabled if the column does not contain any nested structures, such as lists or tables. Ensure that you have selected the correct column. If the data is text-based, you may need to parse it first using text splitting tools before it becomes expandable.

How do I refresh the data after changing the expansion settings?

Right-click anywhere in the resulting Excel table and select "Refresh." This re-runs the Power Query script, applying the new expansion rules to the updated source data. If the source structure has changed, you may need to adjust the query steps again in the editor.

Is it possible to expand multiple levels of nesting?

Yes, you can expand nested tables recursively. After expanding the first level, you may find that new columns also contain nested tables. Repeat the expansion process on these new columns to drill down deeper into the data hierarchy until all desired fields are exposed.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More