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
Analitika
Post Prodigy
Post Prodigy

Trim in the word in Power BI

Hello,

 

I would like to ask why after operation (Close and Apply) in Power BI I am getting word (one with space, other without space), like we have a word "name" but after close and apply I am getting "name" and "name "? I expected to get one word "name" not "name" and "name ". Is it possible to work around it?

1 ACCEPTED SOLUTION
Greg_Deckler
Community Champion
Community Champion

@Analitika Try using Clean and Trim. If the character at the end is something like a tab then trim will not remove it but clean will.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

3 REPLIES 3
VijayP
Super User
Super User

@Analitika 

In My experience , I just replace values if the number of replacement attributes are manageable




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


Anonymous
Not applicable

Hi @Analitika ,

Just as suggested by @Greg_Deckler , please deal with it in Power Query Editor using Trim and Clean option. You can check the following blog for more details on trim and clean function.

Trim Vs. Clean in Power BI and Power Query

yingyinr_0-1636449746010.png

If the above one can't help resolve your problem, please provide more details(sample data, screenshot and backend scenario etc.) on your problem. Thank you.

Best Regards

Greg_Deckler
Community Champion
Community Champion

@Analitika Try using Clean and Trim. If the character at the end is something like a tab then trim will not remove it but clean will.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

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.