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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
RAHULBANDI
Helper II
Helper II

Replace Existing Text

Hi 

I have Following Data

 

NAME

Amalgamation

Annual Book Closure

Bonus Issue

Right Issue of Equity Shares

Right Issue of Equity Shares with Warrants

Right Issue of Fully Convertible Debentures

 

Expected OUT-PUT

NAME

Amalgamation

Annual Book Closure

Bonus Issue

Right Issue 

Right Issue 

Right Issue 

 

I'm looking only for right-issue to be converted

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

What if you try this?

 

= Table.AddColumn(Origen, "Custom", each let splitNAME = Splitter.SplitTextByDelimiter("Right Issue", QuoteStyle.None)([NAME]) in Text.Combine({Text.Start([NAME], 11), Text.Middle(splitNAME{0}?, 11)}), type text)

View solution in original post

5 REPLIES 5
mussaenda
Super User
Super User

Select your column > Transform > Extract > Before Delimiter > Advance Options 

Delimiter put space

Number of Delimitiers to skip put 1

Hi 

I have other rows in that data which are also getting splitted

 

NAME

Amalgamation                                                          Amalgamation   

Annual Book Closure                                                Annual Book 

Bonus Issue                                                                 Bonus Issue

Right Issue of Equity Shares                                        Right Issue

Right Issue of Equity Shares with Warrants                Right Issue

Right Issue of Fully Convertible Debentures               Right Issue

Exchange of Share Certificate                                     Excahnge of

 

Im looking replace only text which starts with Right Issue

 

try this

 

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("hYyxCsJQDAB/JXT2J2xVcNXBoXRIIfYF0wTzEqV/r7Sr4HjHcX3f7GeUCWcMNm2G3VeoJgq0Zg/oxGo6rb41zQrnWnPjC08lNga7w/GZHAtcCzrVvwG8OQrc0B01fuanFFmgM32RB49CcKCRNHLdDx8=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Column1 = _t]),
    #"Extracted Text Before Delimiter" = Table.TransformColumns(Source, {{"Column1", each if Text.StartsWith(Text.Upper(_), "RIGHT ISSUE") then Text.BeforeDelimiter(_, " ", 1) else _, type text}})
in
    #"Extracted Text Before Delimiter"

 

Same procedure, 

Open Blank query, Advanced Editor, Select all delete and paste the code

Anonymous
Not applicable

What if you try this?

 

= Table.AddColumn(Origen, "Custom", each let splitNAME = Splitter.SplitTextByDelimiter("Right Issue", QuoteStyle.None)([NAME]) in Text.Combine({Text.Start([NAME], 11), Text.Middle(splitNAME{0}?, 11)}), type text)

thq very much its working

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Top Solution Authors