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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
NataliaOrtega
New Member

Split colum. Custom delimiter based on dynamic value

Hi there.

I hope someone can help me. I am working in a customer service centre and I need to extract fom a text column, thetime  when one of the agents makes the first response to each case.

 

The problem is that all case comments are in one cell and the delimiter to split the column (from right to left) is a the agent name following by the text " (comments)".

 

I created an auxiliar column with the formula  << [Assigned to]&" (Comments)" >>

 

Please ee screenshot below. I flagged in red the text I need:

Capture1.PNG

 

One of the problems I have is that the Assign to column is a name, not an ID, so all of them are very different.

 

Is it possible to use a custome delimiter taken from a column?

 

Capture.PNG

 

I also thought to use the function Extract text before delimiter, but again, is it possible to take that delimiter from a cell value?

 

Thank you for your kindly help

3 REPLIES 3
ronrsnfld
Super User
Super User

In your title, you write about "Split Column", but in your question, you write you want to "extract" something from the text string. Assuming it is the latter, and you want just that first date, you could use Text.Split with space as delimiter and just return the first item in the list.

Hi.

Thank you for your message 🙂

 

The first date, neither the last is not the one I am trying to extract.

 

The one I need is the latest from the person in the column [Assigned to] which also include the text " (Additional commets)". Sometimes it can include other text as "(Working notes)", which is not what I need. That is why I created the column [Delimiter].

 

Thank you.

 

 

Just add a custom column using the Text.Split function. The delimiter can be the string you select from the other column. EG based on your screenshot, the custom column formula might look like =Text.Split([Case Comments],[Delimiter]). Then you can examine the resultant List to see which item contains the earliest date.

 

If you need more help, I suggest you post a realistic example that shows the variability in your data. Be sure to post it as TEXT which can be copy/pasted. Screenshots are virtually useless for this.

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors