cancel
Showing results for 
Search instead for 
Did you mean: 
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
Solution Sage
Solution Sage

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
Solution Sage
Solution Sage

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
Exciting changes

Power BI Community Changes

Check out the changes to the Power BI Community announced at Build.

May 2023 update

Power BI May 2023 Update

Find out more about the May 2023 update.

Kudo Data Story carousel

Data Stories Gallery

Visit our Data Stories Gallery and give kudos to your favorite Data Stories.

Top Solution Authors
Top Kudoed Authors