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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

Trailing Space Duplicates

Hi All,

 

Came across something the other day which may be of use to someone....

 

I was creating a list to use as intermediate data so that I could create a relationship between two non-unique columns.

 

I created my list and added a remove duplicates step:

 

pbi1.png

 

I then went to create the relationship using this unique list but got the same error about non-unique values:

 

pbi2.png

Weird!   Spent some time retrying things and then after a bit of digging about noticed that even after applying the remove duplicates step I still had two values that looked the same.  Quick length check revealed this:

 

pbi3.png

 

Easy enough to resolve in this case but handy to note that the check for uniqueness that happens when you create a relationship differs from the one for removing duplicates.

 

Cheers

 

Mark

2 REPLIES 2
fiokat
New Member

 I'm having the same problem, would love to know the answer!

rorromartins
Frequent Visitor

Mark, I'm having a similar issue regarding this topic.

 

In my case, I need to have these "duplicate" values (with extra spaces in some cases) because it links them to a dictionary that replaces that value with a correct value. (E.G. I have "HELLO SAM", "HELLO SAM ", "HELLO  SAM"(double spacing), "hello sam", "helo sam", and "hello sam!" and I want them all to show "Hello Sam").

 

But when I try to link this intermediate list to the Base and the Dictionaries I can't because the relationship manager considers some of these values as duplicates (The cases with double spacing between words or extra space at the end of the text).

 

My problem is that Remove Duplicates in query editor does not recognize them as duplicates (Wich is OK for me) but Relationship Manager sees them as duplicates and does not allow me to create the relationship.

 

Do you now of any workarrround to this?

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

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.