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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
ViviHad
Regular Visitor

Split text columm with date and # delimiter

Please,

I have a string columm (obs) with date and text.

I need to split the text and date in the Obs column (see BEFORE) into a separate row for each Funci (see AFTER),

using the # as a delimiter for the Job columm

 

I need to eliminate the text in RED before the date

 

 

BEFORE

-----------------------------------------------------------------------------------------------------------------------------------------------

Funciobs
F2258654PENDENCIA =  Prorrogação do benefício se necessário em 15/11/22/HISCRE MENSAL
Funcionária atingirá 180 dias afastamento em 26/11/2022

01/11/22 - #respostaHISCRE - GSV;
25/10/22 - Funcionário retornou informando que o site do INSS está com indisponibilidade #condução; funcionário encaminhou o HISCRE - GSV 2022/288163/8203 #condução;
24/10/22 - Reiteramos a solicitação #pedidoHISCRE;
F2741218PENDÊNCIA =/Protocolo Novo Benefício/CC/HISCRE
Agendamento de perícia 11/10/22
O comunicado de decisão foi emitido em 24/10/22 e o benefício foi concedido até 10/10/22.


31/10/22 -  Solicitamos que funcionário encaminhe o ASO ERT e CD da nova análise documental solicitada em 26/10/22 #condução;
27/10/22 - #envioCC - GSV 2022/288163/8248 - envio do protocolo com nova análise documental GSV - 2022/288163/8251;
25/10/22 - Solicitamos #pedidoASO e #pedido protocolo de Recurso, funcionário encaminhou protocolo de recurso, ASO Inapto e Atestado CASSI até 30/10/22, solicitamos ajuste do ponto a gestora, encaminhamos os documentos GSV
2022/288163/8169, e solicitamos ao funcionário encaminhar CC e HISCRE do período concedido #assessoria;
24/10/22 - Em consulta ao site INSS emitimos CD e encaminhamos - GSV2022/288163/8111 #condução;

 

AFTER

------------------------------------------------------------------------------------------------------------------------------------------------

FunciDateJob
F225865401/11/2022#respostaHISCRE
F225865425/10/2022#condução
F225865425/10/2022#pedido HISCRE
F274121831/10/2022#condução
F274121827/10/2022#envioCC
F274121825/10/2022#pedido ASO 

 

 

Thank you in advance for your help!

4 REPLIES 4
ViviHadd
New Member
AKNiang
Frequent Visitor

Hi,

 

The best I reached is the folowing code:

 

 

let
Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Funci", type text}, {"obs", type text}}),
#"Filled Down" = Table.FillDown(#"Changed Type",{"Funci"}),
#"Lowercased Text" = Table.TransformColumns(#"Filled Down",{{"obs", Text.Lower, type text}}),
Custom1 = Table.AddColumn(#"Lowercased Text", "Date", each Text.Remove([obs],{"a".."z", "#"})

)
in
Custom1

 

To make it work you have to add after the "#" all the alphabetical and special characters that are not covered in my code.

 

 Hope have helped you a little bit:

 

You can follow me on LinkedIn -->Abdoul Karim Niang | LinkedIn

 

Hi Abdoul.

 

Thanks for the answers, but my table is not like that.

 

The column "Funci" has a value (like F123456) and the column "obs" has several lines in the same cell.

 

Here is a photo of my table:

ViviHad_1-1667575880422.png

 

In the first line for example, the output must be something like:

 

Funci               Date              Job

F1713097        03/11/22      #assessoria

F1713097        27/10/22      #envio HISCRE #assessoria

 

and it goes in all lines.

 

Thanks for the effort to trying to resolve my problem 🙂

 

@ViviHad To make sure the data formats are retained correctly, you should upload the Excel file on Google Drive and share a link otherwise people here will end up with solutions and you will not accept because of minute changes.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.