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
Aykut
Frequent Visitor

List to Column - "Comma" issue

Hi there,

 

I have a list.

One or many of the of the items contains a COMMA.

Aykut_1-1668958876261.png


I now want to convert the list to a Table with single column. The item with COMMA brings an error.
How can I solve this error?

Aykut_2-1668958920221.png

 

Here is the example code:

 

 

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WcnRyVorViVaKiIwC0y6ubmA6IDBIJ8Q1OATM8fbxVYqNBQA=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [MyColumn = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"MyColumn", type text}}),
    MyList = #"Changed Type"[MyColumn],
    MyTable = Table.FromList(MyList, null, {"NewColumn"})
in
    MyTable

 

 

Any suggestions? 

 

Many Thanks,
Regards,
Aykut

1 ACCEPTED SOLUTION

You can replace comma

 

or convert the list to table with the truncate optiion

 

speedramps_0-1668960188646.png

 

speedramps_1-1668960268075.png

 

 

View solution in original post

3 REPLIES 3
speedramps
Super User
Super User

We want to help you but your description is too vaugue. Please write it again clearly.

Thank you for provide example input data !!!
But please povide the example desired output.

What do you wnat to do with PQR, TEST ?

Just remove the comm or split PQR and TST to 2 lines? 

Remember not to share private data ... we don't want you to get into trouble. 😧

Take time and care to use the same table and field names in the input, output and description so we can understand your problem and help you.

You will get a quick response if you put time, care and effort into writing clear problem descriptions.

Vaugue descriptions can waste your time and ourtime.

Look foward to helping you when the above information is forthcoming

You can replace comma

 

or convert the list to table with the truncate optiion

 

speedramps_0-1668960188646.png

 

speedramps_1-1668960268075.png

 

 

Hi speedramps,

Thank you for your screenshot! 
Now it works!

 

Aykut_0-1668962511087.png

 

 

Thx, Regards,
Aykut

 

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.