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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
webportal
Impactful Individual
Impactful Individual

Removing punctuation from a column in Power Query

Can anyone help me in removing punctuation from a column in Power Query?

 

This is what I'm trying:

 

 

= Table.TransformColumns(#"Texto em Maiúsculas",{{"descritivo", Text.Select(#"Texto em Maiúsculas"[descritivo], List.Combine({{"A".."Z"},{"a".."z"},{" "}})), type text}})

 

 

The column is "descritivo" and the previous step in Power Query is  "Texto em Maiúsculas".

 

Thanks!

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

Hi @webportal ,

 

I add a step "Added Custom1" in your formula.

= Table.TransformColumnTypes(Table.AddColumn(#"Uppercased Text", "Custom.1", each Text.Select([Column1],List.Combine({{"A".."Z"},{"a".."z"},{" "}}))),{{"Custom.1", type text}})

 

v-xuding-msft_0-1598265160693.png

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WiogKU0grStRTcAx2iyk1MDAyV4rViVZydHMJdnHXU0gJdNFPB4skFqelF6cWpRvoaoD56YlpKcWKDspKsbEA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Column1 = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Column1", type text}}),
    #"Uppercased Text" = Table.TransformColumns(#"Changed Type",{{"Column1", Text.Upper, type text}}),
    #"Added Custom1" = Table.TransformColumnTypes(Table.AddColumn(#"Uppercased Text", "Custom.1", each Text.Select([Column1],List.Combine({{"A".."Z"},{"a".."z"},{" "}}))),{{"Custom.1", type text}})
in
    #"Added Custom1"

 

 

Best Regards,
Xue Ding
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-xuding-msft
Community Support
Community Support

Hi @webportal ,

 

I add a step "Added Custom1" in your formula.

= Table.TransformColumnTypes(Table.AddColumn(#"Uppercased Text", "Custom.1", each Text.Select([Column1],List.Combine({{"A".."Z"},{"a".."z"},{" "}}))),{{"Custom.1", type text}})

 

v-xuding-msft_0-1598265160693.png

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WiogKU0grStRTcAx2iyk1MDAyV4rViVZydHMJdnHXU0gJdNFPB4skFqelF6cWpRvoaoD56YlpKcWKDspKsbEA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Column1 = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Column1", type text}}),
    #"Uppercased Text" = Table.TransformColumns(#"Changed Type",{{"Column1", Text.Upper, type text}}),
    #"Added Custom1" = Table.TransformColumnTypes(Table.AddColumn(#"Uppercased Text", "Custom.1", each Text.Select([Column1],List.Combine({{"A".."Z"},{"a".."z"},{" "}}))),{{"Custom.1", type text}})
in
    #"Added Custom1"

 

 

Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
harshnathani
Community Champion
Community Champion

Hi @webportal ,

 

https://blog.crossjoin.co.uk/2017/12/14/removing-punctuation-from-text-with-the-text-select-m-functi...

 

https://www.youtube.com/watch?v=YOmL57g3RMg

 

Scroll to 6:46

 

Regards,
Harsh Nathani
Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)

amitchandak
Super User
Super User

@webportal , refer if these can help

https://www.youtube.com/watch?v=MLrRlPh_ZFQ

https://www.youtube.com/watch?v=QDB_ypnHqos

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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.