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
GiuseppeSan
New Member

Replace all occurrences of a text between two custom delimiters

Hello everyone,
I am using this formula to delete the text between the two delimiters.

 

    #"Rimosso contenuto span" = Table.TransformColumns(#"Rimosso contenuto h4", {{"Descrizione", each Text.Replace(_, Text.BetweenDelimiters(_, "<span", ">"), ""), type text}}),

 

The replacement does not occur for all occurrences in the field, but only for the first one that is found.

How can I improve the formula to replace all occurrences?

Thank you,
g.

2 REPLIES 2
JoeBarry
Solution Sage
Solution Sage

Hi @GiuseppeSan 

 

Are you highlighting the whole column before replacing the value? If you just chose one cell and carried out the replacemnet, then it will only change cells that are exactly that value, whereas if you choose the whole column or highlight multiple  columns it will remove this from all cells which have the value.

 

Thanks

Joe

Hi @JoeBarry ,

function replaces only the first occurrence of the single cell.

 

g.

Helpful resources

Announcements
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 Kudoed Authors