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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
kenchan
Frequent Visitor

Remove String Word in PowerBI

Hi Expert, this is Ken, a beginer of PowerBI. 

 

I collect some email from HTML to text. However, there are a long of string or character which impact my analysis; I would like to remove it. Is there specific function which can help to to remove the String below? 

 

Text Characters/String I would like to remove: 

[cid:0.28869237......181230d22e3__inline__img__src]

[https://......?id=01570000001okLb&oid=00D300000000bzv]

[data:image/....]

 

B.R.

Ken

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

Hi @kenchan ,

 

Please add the custom column in Power Query Editor.

 

= List.RemoveItems(List.Select(Splitter.SplitTextByAnyDelimiter({"[", "]"})([Original Data]), each not (Text.StartsWith(_, "cid",Comparer.OrdinalIgnoreCase) or Text.StartsWith(_, "https",Comparer.OrdinalIgnoreCase))), {"",null," ","#(lf)"})

vkkfmsft_0-1655778321691.png

 

Then extract values from the list.

 

vkkfmsft_1-1655778379054.png

vkkfmsft_2-1655778427824.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

3 REPLIES 3
v-kkf-msft
Community Support
Community Support

Hi @kenchan ,

 

Please add the custom column in Power Query Editor.

 

= List.RemoveItems(List.Select(Splitter.SplitTextByAnyDelimiter({"[", "]"})([Original Data]), each not (Text.StartsWith(_, "cid",Comparer.OrdinalIgnoreCase) or Text.StartsWith(_, "https",Comparer.OrdinalIgnoreCase))), {"",null," ","#(lf)"})

vkkfmsft_0-1655778321691.png

 

Then extract values from the list.

 

vkkfmsft_1-1655778379054.png

vkkfmsft_2-1655778427824.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.

 

kenchan
Frequent Visitor

Add an example for easy understanding.

I want to remove the string. Sometimes, some cells may inlcude both 1 and 2 situation.

1. start with "[cid" and end with "]"

1. start with "[https" and end with "]"

 

Original DataMy expected outcome

ABC

[cid:0.28869237......181230d22e3__inline__img__src]

 

 

 

ABC
xxxx

[https://......?id=01570000001okLb&oid=00D300000000bzv]

 

xxx

 

Original DataMy expected outcome

ABC

[cid:0.28869237......181230d22e3__inline__img__src]

ABC
xxxx

[https://......?id=01570000001okLb&oid=00D300000000bzv]

xxxx

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

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.