Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
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
-----------------------------------------------------------------------------------------------------------------------------------------------
| Funci | obs |
| F2258654 | PENDENCIA = 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; |
| F2741218 | PENDÊ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
------------------------------------------------------------------------------------------------------------------------------------------------
| Funci | Date | Job |
| F2258654 | 01/11/2022 | #respostaHISCRE |
| F2258654 | 25/10/2022 | #condução |
| F2258654 | 25/10/2022 | #pedido HISCRE |
| F2741218 | 31/10/2022 | #condução |
| F2741218 | 27/10/2022 | #envioCC |
| F2741218 | 25/10/2022 | #pedido ASO |
Thank you in advance for your help!
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:
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.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.