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
Centaur
Helper V
Helper V

Remove trailing spaces

Hello, 

 

How could I remove the trailing spaces in my table field named Vendor?  

I can filter for vendors with a space at the end but I dont know how I can remove the space at the end.  

I am not sure what else woudl need to be know but feel free to reach out.  

I know I can use trim in excel but I want to use power query to do this. 

I am a novice user. 

 

thank you

1 ACCEPTED SOLUTION
serpiva64
Solution Sage
Solution Sage

Hi,

here you find the command you need (trim)

serpiva64_0-1644679272520.png

provide a sample data if you need something else

 

If this post is useful to help you to solve your issue consider giving the post a thumbs up 👍 and accepting it as a solution !

 

View solution in original post

3 REPLIES 3
Centaur
Helper V
Helper V

that was perfect!  thank you very much!

serpiva64
Solution Sage
Solution Sage

Hi,

here you find the command you need (trim)

serpiva64_0-1644679272520.png

provide a sample data if you need something else

 

If this post is useful to help you to solve your issue consider giving the post a thumbs up 👍 and accepting it as a solution !

 

Thank you for the screen shot, this did exactly what I needed.

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.