Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
geirselvag
Frequent Visitor

Dynamic Column Expand

Hi Folks,

 

I get error message when trying to dynamically expand columns.  When doing manuell column expand, the step is working but the content will change over time. The underlying data include record type, so there's a need to further expand these and unpivot the fields.

Would appreciate any tips and suggestion.

PowerQuery - dynamic column expand.png

 




Thanks!
GS 

2 REPLIES 2
jennratten
Super User
Super User

Hello - without seeing a preview of the table it's hard to say for sure, but I would guess your table is returning some null records instead of list records, which cannot be expanded without first converting the values. Can you please confirm whether or not this is indeed the case?  At the RemovedColumns step, pls click the whitespace next to the first record object in the column (since in your screenshot it looks like that is one throwing an error).  Can you please post a snip of what you see in the preview when you do that?

 

@jennratten, thank you for you feedback. The underlying data, is nested records.

Dyn_ExpCols_M4.png

The structure after the 2nd underlying record (columns) is not dynamic - but has fixed columns (ref. Exp_Value, Exp_assingedBy, Exp_user). Therefore only looking for dynamically expand the first column ("assingments" - user id) with records, that also generate null values (ref. photo) because keep taskId reference.

The M Power Query, is working but based on manuall step by step configuration. The issue start when a new assignment is created, so that have to re-run the manual expand columns process.

Dyn_ExpCols_M2.png
  
Dyn_ExpCols_M3.png

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.