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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Amber_McLeod
Regular Visitor

Add Column in order to separate data from existing column

Hi,

 

I am trying to separate data in a column that can appear in the original column with or with or without delimiters.

 

Example 

Each of the below representssome of the potential entries in original column by row:

 

[string 1, string 2, string 3]

[string 2, string 4, string 5]

[string 1, String 2, string 4, string 5, string 7]

[string 1]

[string 2]

 

Because the delimiter could be present or not the eliminates the possibility of extraction using a delimiter, because the strings don't always appear in the same order, that eliminates extracting by chatacters. I tried adding a conditional column, maybe I entered that incorrectly but it errored out on me.

Amber_McLeod_0-1647023544837.png

 

There are null values in the column but if in my conditional operator using contains string2, then return string2, else blank, I was thinking that should work, and I can't understand why it isn't working. 

 

I appreciate any help you can provide.

 

Thanks,

 

Amber

 

1 REPLY 1
lbendlin
Super User
Super User

Please provide sanitized sample data that fully covers your issue. If you paste the data into a table in your post or use one of the file services it will be easier to work with. Avoid posting screenshots of your source data if possible.

Please show the expected outcome based on the sample data you provided. Screenshots of the expected outcome are ok.

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.

Top Solution Authors