Forum Discussion
Relationship between tables
- 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]) ) )
Maybe create a new table that has every METRIC value
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])
)
)- Anonymous8 years agoNot applicable
Hi Phil,
That worked!
Thank you so much :)
Sonia
- Anonymous8 years agoNot applicable
Hi Phil_Seamark
Thanks again for this great tip, I've been using it a lot!
Unfortunately, for this latest one, I'm getting a null value in the new table, but I can't work out why...
Any ideas?
Account Relationship =
DISTINCT(
UNION(
VALUES('HOMEPAGE'[SITE SECTION]) ,
VALUES('HOMEPAGE+FRANCHISE'[SITE SECTION]) ,
VALUES('MARVEL'[SITE SECTION]),values('OTHERS'[SITE SECTION]),values('PIXAR'[SITE SECTION]),values('SHOP ALL'[SITE SECTION]),values('STAR WARS'[SITE SECTION])
)
)Then in my new Table it returns
HOMEPAGE
HOMEPAGE+FRANCHISE
MARVEL
OTHERS
PIXAR
SHOP ALL
STAR WARS
Thanks again
Sonia