Forum Discussion
Saqibmughal00
Helper I
2 years agoI wan to link multiple tables
I got a situation, got planned data at different sheet and actual at different sheet. both are linked to date table but I also want to link them based on "adjusted scope" as the slicers are based on ...
- 2 years ago
You can create a separate dimensions table to link the two tables just like you did with dates. You can do that either in the query editor or in DAX. In DAX, try this:
DimScope = VAR __FORCE = SELECTCOLUMNS ( 'Force Table', "Adjusted Scope", 'Force Table'[Adjusted Scope] ) VAR __PLANNED = SELECTCOLUMNS ( 'Planned', "Adjusted Scope", 'Planned'[Adjusted Scope] ) RETURN DISTINCT ( UNION ( __FORCE, __PLANNED ) )
danextian
Super User
2 years ago
You can create a separate dimensions table to link the two tables just like you did with dates. You can do that either in the query editor or in DAX. In DAX, try this:
DimScope =
VAR __FORCE =
SELECTCOLUMNS ( 'Force Table', "Adjusted Scope", 'Force Table'[Adjusted Scope] )
VAR __PLANNED =
SELECTCOLUMNS ( 'Planned', "Adjusted Scope", 'Planned'[Adjusted Scope] )
RETURN
DISTINCT ( UNION ( __FORCE, __PLANNED ) )
Saqibmughal00
Helper I
2 years agoThanks, Thats what exactly I did and it sorted the problem