Problem creating unique values to create a relationship

misskayanne

New Member
Joined
Aug 31, 2018
Messages
4
Hi

I'm trying to join two tables together through a relationship but am having trouble.

My data is of a Building (type text) , which has Floors and Rooms which can both be a mix of text and number names (type any).

large



In order to create a relationship based on the Room column, I attempted to create a unqiue values table by referencing the Room_Mapping table, removing all by columns apart from Room, and removing duplicates.

large


However, when I try to join the two tables together based on the Room column, I keep getting the following message.

large


I have a feeling that this error is coming because the data type is a mix of text and numbers that it is getting confused because when I go to look at the data in Data view, I can see that the data for Phase and Room fields have been converted to Text type.

Please can any one help? I have attached a link to the workbook and data in the link below.


Room_Mapping Data and PBI Workbook

Many thanks in advance.
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
What if you try to set the data types to Text by using Power Query before loading the data into the model?
 
Upvote 0
Solved:

There were case sensitive in Room on Room_UniqueValues. and have null as well.

Action taken

Change into Lower or Upper case. and remove null in Edit Query mode.
 
Upvote 0

Forum statistics

Threads
1,214,648
Messages
6,120,725
Members
448,987
Latest member
marion_davis

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top