Forum Discussion
Removing Duplicated to create a relationship!!!
Side question: holy moly, does everybody in this company have their own unique job title?
Hahaha seems so ! Thanks for the help thus far both.
Transform trick did not work... :(
I can't understand how following these steps I don't get a unique list:
1. Duplicate original table in PowerBI query editor.
2. Delete all but job titles columns
3. Apply every kind of removed duplicates, removed blank rows, removed errors, Filtered> removed empty.
What else can I do?
- Anonymous10 years agoNot applicable
You did both Capitalize and Trim? OK, we're going to have to hunt this down by hand. Load your query and go into the report editor. Write a measure (with whatever names you called things, obviously):
Duplicate Hunter = COUNTA(SalaryTable[JobTitle])
Now add a table visual with SalaryTable[JobTitle] and the measure [Duplicate Hunter]. That should give you something that looks like:
Job Title Duplicate Hunter
Underwater Basket Weaver 1
Executive Assistant Barista 1
Sarcasm Translator 1
...
Somewhere in that list there's either a pair of titles with a 2, or one title with a 3. Go to filters and set it to Duplicate Hunter is greater than 1. Whatever is left are the duplicates. Hopefully seeing what it is will give you a clue as to how to fix it. If not...uh...we can talk about that when it happens.
- kcantor10 years ago
Community Champion
Anonymous That is a great idea . . . going to hijack this particular reply and ask if you can help me solve my many to many issue: http://community.powerbi.com/t5/Desktop/Is-this-Possible-DAX-many-to-many/m-p/37128#U37128
- Anonymous10 years agoNot applicable
kcantor after an hour of thinking about your question I started to smell burning circuitry so I'm going to give my brain a break. But if you could send me your sample data maybe I can do better with something concrete.
keyahorm I'm dying of suspense. What's the word? Did that help you track down the culprit?
- leinad139 years ago
Advocate I
This seems to be a common problem for me, I wonder Microsoft choose not to display the non duplicates?
The error "One of the columns must have unique value" is particularly frustrating, especially after you have chosen 'Remove Duplicates' on both columns. I understand there may be technical reasons for this - but from a usage point of view. The error is useless - the computer may as well just beep loudly, would give you same information as the error!
- ScottFerguson9 years ago
Helper II
If this is still open, I have found removing duplicates in a workskheet in the source file (usually excel) is easier. Then you can load the table to creat the relationship in Power BI.