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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
Syndicate_Admin
Administrator
Administrator

Handle Array in column

Hi Experts,
I have a "Label" and "Value" columns in my dataflow. Most of the labels and their values are type strings.

However, there are few values which comes in as [List]. The [list] array has ONLY "one" string inside.

Is there a way I can expand the [list] array within the value column, which gets applied to each value which has [list] type?? so that the string inside array becomes the value?

 

gujjar_0-1639017291176.png

 

Thanks

1 ACCEPTED SOLUTION
wdx223_Daniel
Community Champion
Community Champion

NewStep=Table.TransformColumns(PreviousStepName,{"fields.1.value",each if _ is list then _{0} else _})

View solution in original post

1 REPLY 1
wdx223_Daniel
Community Champion
Community Champion

NewStep=Table.TransformColumns(PreviousStepName,{"fields.1.value",each if _ is list then _{0} else _})

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors