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.
I have imported a table and can't create a relationship because it says there aren't unique values in one of the columns.
The problem is they are unique if you look at capitallization.
Example - Insurance Company table is the one that would list every insurance company with a unique code. (We are limited in our database to 3 characters and some have to start with certain letters)
Data may be:
Company Code
Blue Cross BC
Blue Cross of SD Bc
First American FBx
Tricare Tx
In another table (Accounts) we have
Name InsCode
Kathy BC
Jim BC
Sue Bc
etc...
When I try and create a relationship between InsCode and Code it says neither have unique values. Is there a way to have it look at capitalization?
Where are you getting(importing) the data from. Try to get distinct Codes for both instead of all the codes.
Here is a picture. On the right is in the query itself. You can see the capitalization is unique. Thus giving unique values.
On the left is when I pull the values into a table. The capitalization changes.
Power Query M is case sensitive but DAX is not.
So you need to add an index column in your master table in power query and use merge queries in your transaction table mathcing on code and get index number from master table, once this is done then you can set relationship between you master and transaction table on index column.
Let me know if you need help to get this up and running.
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
96 | |
94 | |
80 | |
71 | |
64 |
User | Count |
---|---|
115 | |
106 | |
96 | |
81 | |
72 |