Forum Discussion
Anonymous
8 years agoNot applicable
Relationship between tables
Hi, I'm having some trouble creating a relationship between 3 tables, which are all related by the column 'metric'. I'd love to link them all so i can then filter/slice by the 'Metric' - Each ta...
- 8 years ago
This DAX might help create a table that you can then relate your three existing tables to
Table = DISTINCT( UNION( VALUES('Demo'[METRIC]) , VALUES('Country'[METRIC]) , VALUES('City'[METRIC]) ) )
Phil_Seamark
8 years agoMicrosoft Employee
HI Anonymous
Does one of the three tables only have unique values for METRIC in it?
- Anonymous8 years agoNot applicable
Hi Richard,
No, they've all got the same three (but different values for each metric) which i think could be the problem!
Is there any way around this?
- Phil_Seamark8 years agoMicrosoft Employee
Maybe create a new table that has every METRIC value
- Phil_Seamark8 years agoMicrosoft Employee
This DAX might help create a table that you can then relate your three existing tables to
Table = DISTINCT( UNION( VALUES('Demo'[METRIC]) , VALUES('Country'[METRIC]) , VALUES('City'[METRIC]) ) )