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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
tall27
New Member

Transform list into comma-separated text.

Hi,

My json file allows multivalue in the field, that result in different results in the table. 

tall27_0-1679673811640.png

after the import, I can see 'lists' and  the values (for a single value).

tall27_1-1679673856320.png

 

I struggle to expand all lists, and show all channels in the same cell

tall27_3-1679674301092.png

is it possible to achieve ?

Thank you ahead!

1 ACCEPTED SOLUTION
AlienSx
Super User
Super User

Hi, @tall27 

Table.TransformColumns(source_table, {"column_name", (x) => if Value.Type(x) = type list then Text.Combine(List.Transform(x, Text.From), ", ") else x})

View solution in original post

1 REPLY 1
AlienSx
Super User
Super User

Hi, @tall27 

Table.TransformColumns(source_table, {"column_name", (x) => if Value.Type(x) = type list then Text.Combine(List.Transform(x, Text.From), ", ") else x})

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors