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
Anonymous
Not applicable

In PowerBI Query Editor, split column using starting and ending delimiter

Hi,

 

I have a column of data which is of the format given below:

 

[{'name': 'TriStar Pictures', 'id': 559}, {'name': 'Teitler Film', 'id': 2550}, {'name': 'Interscope Communications', 'id': 10201}]

 

I want to split this column of data into multiple columns, with delimiter start as '{' and delimiter end as '}'.

Endresult expected:

Column 1Column 2Column 3
{'name': 'TriStar Pictures', 'id': 559}{'name': 'Teitler Film', 'id': 2550}{'name': 'Interscope Communications', 'id': 10201}

 

If I use the delimiter as comma, then even then the result would be 6 columns, which is not what I want. Can you please suggest how this can be done in Power BI Query Editor using the Split column feature.

1 ACCEPTED SOLUTION
adityavighne
Continued Contributor
Continued Contributor

You can use below DAX


=PATHITEM(SUBSTITUTE(Person[Full Name], “{”, “|”), 1)

 

1 is for previous text {

2 for after text  {

View solution in original post

2 REPLIES 2
adityavighne
Continued Contributor
Continued Contributor

You can use below DAX


=PATHITEM(SUBSTITUTE(Person[Full Name], “{”, “|”), 1)

 

1 is for previous text {

2 for after text  {

Anonymous
Not applicable

Thanks Aditya for your quick response. It really helped in resolving the issue. Thanks once again.

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.