Skip to main content

Power BI

New

Expand All Columns in Query Editor

Vote (27) Share
's profile image

on 06 Jul 2016 20:08:26

Expanding columns in the Query Editor (with Transform->Structured Column->Expand) one-by-one with heavily nested Records and 100+ columns by the end is
incredibly tedious and time-consuming.

A single function to continuously expand all columns capable of being expanded until no more can be expanded would be useful.

Ideally this could have a check-box as well, setting the function to run every time data is updated to allow for evolving input schema.

Comments (2)
's profile image Profile Picture

a3309361 99be-ea11-a812-000d3a8ddfb2 on 05 Jul 2020 23:21:45

RE: Expand All Columns in Query Editor

For now you can use this script https://blog.crossjoin.co.uk/2014/05/21/expanding-all-columns-in-a-table-in-power-query/

's profile image Profile Picture

ee77a8db 21fc-467a-b915-03e45839cf94 on 05 Jul 2020 22:36:28

RE: Expand All Columns in Query Editor

An example of when this would be useful, is when the names of the columns can change. For instance I have some parameters I can change to perform a different query, resulting in different column names, which breaks the query. I must edit the query manually to tell it which columns it needs to expand as the ones it previously was looking for aren't there.