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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Extract table from column

Hi guys...

I'm trying to extract all data from this column keeping all data in one column only, separated by comma.

Capture.PNG

 

Capture.PNG

1 ACCEPTED SOLUTION
v-lid-msft
Community Support
Community Support

Hello @Williamspsouza ,

We've added a custom column to meet your requirements.

24.jpg

if [Data] is table 
then 
  Text.Combine(
    List.Transform(
      List.Combine(Table.ToRows([Data]))
      , each Text.From(_)
      )
    ,","
    )
else [Data]

25.jpg

And we can get the result this way,

26.jpg

All inquiries are here:

let
    Source = Table.FromRows(
        {
          {1, null},
          {2, "QA"},
          {3, Table.FromRows({{"Camunda"}, {"Salesforce"}} ,{"Element:Text"})},
          {4, null},
          {5, Table.FromRows({{"A",1}, {"B",2}, {"C",4}} ,{"Element:Text2","AnotherID"})}
        }
      ,{"ID", "Data"}),
    #"Added Custom" = Table.AddColumn(Source, "Custom", each if [Data] is table 
then 
  Text.Combine(
    List.Transform(
      List.Combine(Table.ToRows([Data]))
      , each Text.From(_)
      )
    ,","
    )
else [Data])
in
    #"Added Custom"

If you don't meet your requirement, could you show the expected exact result based on the table we shared?

BTW, pbix as attached.

Best regards

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-lid-msft
Community Support
Community Support

Hi @Anonymous ,

 

How about the result after you follow the suggestions mentioned in my original post?Could you please provide more details about it If it doesn't meet your requirement?


Best regards,

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-lid-msft
Community Support
Community Support

Hello @Williamspsouza ,

We've added a custom column to meet your requirements.

24.jpg

if [Data] is table 
then 
  Text.Combine(
    List.Transform(
      List.Combine(Table.ToRows([Data]))
      , each Text.From(_)
      )
    ,","
    )
else [Data]

25.jpg

And we can get the result this way,

26.jpg

All inquiries are here:

let
    Source = Table.FromRows(
        {
          {1, null},
          {2, "QA"},
          {3, Table.FromRows({{"Camunda"}, {"Salesforce"}} ,{"Element:Text"})},
          {4, null},
          {5, Table.FromRows({{"A",1}, {"B",2}, {"C",4}} ,{"Element:Text2","AnotherID"})}
        }
      ,{"ID", "Data"}),
    #"Added Custom" = Table.AddColumn(Source, "Custom", each if [Data] is table 
then 
  Text.Combine(
    List.Transform(
      List.Combine(Table.ToRows([Data]))
      , each Text.From(_)
      )
    ,","
    )
else [Data])
in
    #"Added Custom"

If you don't meet your requirement, could you show the expected exact result based on the table we shared?

BTW, pbix as attached.

Best regards

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi @Anonymous ,

 

Could you please share a sample data to me?

So I can try to solve it in my desktop first to make sure my way is working.

 

Thanks

Aiolos Zhao

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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