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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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