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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Cream_17
Frequent Visitor

How to split with space except one word

Hello everyone, I`m newbie in this forum, so I`m so sorry if I'm still not used to the way of communication in this forum.

 

【So the problem which  I want to discuss is】

→I need to separate/split the given sentence into single word by "space", but I don`t want the same treatment applied to any phrase begin by word "not"

 

【Exemple】

Cream_17_0-1680403014578.png

 

【Desired output】

the AC is not working : (the) (AC) (is) (not working)

the motor is not going well : (the) (motor) (is) (not going) (well)

 

I really appreciate to anyone who can help me solve the problem

1 ACCEPTED SOLUTION
Jakinta
Solution Sage
Solution Sage

You can apply steps below after your last step.

 

    Replaced = Table.ReplaceValue(PreviousSteName,"not ","not_",Replacer.ReplaceText,{"commentar"}),
    Split = Table.TransformColumns(Replaced, {{"commentar", each Text.Replace( "(" & Text.Combine( Text.Split (_, " "), ") (") & ")", "_", " "), type text}})
in
    Split

 

Jakinta_0-1680410677675.png

 

View solution in original post

2 REPLIES 2
Cream_17
Frequent Visitor

Dear Jakinta

 

Thanks for you response, you solved my problem

Jakinta
Solution Sage
Solution Sage

You can apply steps below after your last step.

 

    Replaced = Table.ReplaceValue(PreviousSteName,"not ","not_",Replacer.ReplaceText,{"commentar"}),
    Split = Table.TransformColumns(Replaced, {{"commentar", each Text.Replace( "(" & Text.Combine( Text.Split (_, " "), ") (") & ")", "_", " "), type text}})
in
    Split

 

Jakinta_0-1680410677675.png

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.

Top Solution Authors