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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
vibhoryadav23
Helper II
Helper II

Keep trailing spaces at the end of the cells

Hi,

I have two similar cells, one with trailing space at the end. Example: "Spain" and "Spain "

When I load the data in Power Query, I can see these two as different rows and if I do remove duplicates, it keeps both the rows. But when I import the same in a pivot or try to create a relationship, it clubs them together and shows as duplicates. 

Does someone knows a way to handle this issue. I want them to be treated as two different cells.

Thanks in advance!

 

4 REPLIES 4
v-stephen-msft
Community Support
Community Support

Hi @vibhoryadav23 ,

 

How about replace "Spain1" with "Spain "?

Replace values (Power Query)

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

This will require a lot of manual intervention as  there are a lot of duplicate values in my data and the duplicates change over time. I need a solution which automatically takes these cases into account.

vibhoryadav23
Helper II
Helper II

@ribisht17 

This workaround doesn't work for me as I need to create a realtionship on the same column as well

ribisht17
Super User
Super User

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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