Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
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))
User | Count |
---|---|
97 | |
87 | |
77 | |
67 | |
63 |
User | Count |
---|---|
112 | |
96 | |
95 | |
67 | |
65 |