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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Anonymous
Not applicable

HElP ME

Hello everyone,

 

I have problems and I need to solve

 

I'm pulling information from a text column without standardization..

I need to pull the field "Descrição:: "but I don't have a final delimiter, it's not standardized..

My idea is to pull from "Descrição:: " until next time ":" and clean it later, but I'm not able to

 

My idea of ​​formula in M ​​is this

 

Text.Middle([Notas],
(if Text.Contains([Notas],"Descrição:: ") = true then Text.PositionOf([Notas],"Descrição:: ")+12 else 0 ),(
(Text.PositionOf([Notas],"Operação:: ")) - Text.PositionOf([Notas],"Descrição:: ")+12)

)

 

I even tried in dax

 

TEST =
VAR NOTAS = [Notas]
VAR POSI_DESCRICAO = SEARCH("Descrição:: ",NOTAS,1,BLANK())+13
VAR POSI_DOIS_PONTOS = search(": ",NOTAS,POSI_DESCRICAO,BLANK())
VAR DADOS=IF(POSI_DOIS_PONTOS-POSI_DESCRICAO<0,0,POSI_DOIS_PONTOS-POSI_DESCRICAO)
VAR TUDO_NOTAS = mid(NOTAS,POSI_DESCRICAO,DADOS)
RETURN
TUDO_NOTAS

 

Capturar.PNG

phelipesalu_0-1649442256664.png

 

1 ACCEPTED SOLUTION
v-kkf-msft
Community Support
Community Support

Hi @Anonymous ,

 

Please add a custom column in Power Query Editor:

 

= Text.BetweenDelimiters([Text],"Descrição:: ",":")

image.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-kkf-msft
Community Support
Community Support

Hi @Anonymous ,

 

Please add a custom column in Power Query Editor:

 

= Text.BetweenDelimiters([Text],"Descrição:: ",":")

image.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

July 2024 Power BI Update

Power BI Monthly Update - July 2024

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

July Newsletter

Fabric Community Update - July 2024

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