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.
Table_1 and Table_2 both have a column containing the same information, let's call this area_column.
I can't link Table_1 and Table_2 because the area-column in both can have the same value repeated. So I created Table_3 with a column called Areas to give a list of unquie values from Table_1 using the following formula:
Areas = DISTINCT('Table_1'[area_column])
Now when I try to link the column Areas in Table_3 to the area_column in either Table_1or Table_2 I keept getting a message saying that this is a many-many relationship, which does not make sense to me as Table_3 is a list of unique values so surely it should be a 1-many relationship.
Any ideas why this might be the case and how to solve it?
Solved! Go to Solution.
@Anonymous , just if there null/blank value in these table, in that case, you will many to Many even if expect 1-M.
@Anonymous , Try to change the relationship manually. If it is not helping check the data if there is any repeated value.
Regards,
Manikumar
Proud to be a Super User!
@Anonymous , just if there null/blank value in these table, in that case, you will many to Many even if expect 1-M.
Hey - checked every row of both tables and no blanks. I removed blanks using this DAX here. Is there any other reason why PBI won't let me do One to Many?
Key_Table = FILTER( Distinct( UNION('Table1','table2','table3') ),'table1'[key]<>BLANK())
amitchandak I was getting blank values through. I changed the formula to the following:
Area = DISTINCT(FILTER(VALUES('Table_1'[area_column]),LEN('Table_1'[area_column])>0))
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 |
---|---|
111 | |
94 | |
83 | |
66 | |
59 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |