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
gaccardo
Advocate II
Advocate II

Transform Data from SharePoint List

I have a table with a single column, and what I would like to do is transfrom this into a single, comma-separated value,

like this 883673,883674,883678...  How can I do this?

 

image.png

1 ACCEPTED SOLUTION

Hi,

 

The first item in your Text.Combine must be a list and not a table of records so you need to convert your

 

workItemTable[Column1]

 

to a list

 

https://msdn.microsoft.com/en-us/query-bi/m/table-tolist

 

Table.ToList(workItemTable[Column1])

 

/Erik

View solution in original post

3 REPLIES 3

Hi

 

In Power Query you can do use the Text.Combine

= Text.Combine(Table1[Column1.id],",")

In DAX you can create a measure with CONCATENATEX

 

Measure = CONCATENATEX(Table1,[Column1.id],";")

 

/Erik

 

 

Thank you very much for the solution.  When I use the following expression:

    #"Combine" = Text.Combine(workItemTable[Column1],",")

 

I get the following message:

 

Expression.Error: We cannot convert a value of type Record to type Text.
Details:
    Value=Record
    Type=Type

 

What have I missed?

 

Best Regards,

G

Hi,

 

The first item in your Text.Combine must be a list and not a table of records so you need to convert your

 

workItemTable[Column1]

 

to a list

 

https://msdn.microsoft.com/en-us/query-bi/m/table-tolist

 

Table.ToList(workItemTable[Column1])

 

/Erik

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