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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
Super User
Super User

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

View solution in original post

1 REPLY 1
wdx223_Daniel
Super User
Super User

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

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Top Solution Authors
Top Kudoed Authors