Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Saqibmughal00
Helper I
Helper I

I 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 that. Shall appreciate your support on that. attaching screenshot below for reference. Force allocation data is actual file while planned is plan file and both have common adjusted scope. An i am keen on one to many relation (not sure if others will work as never tried).

 

Saqibmughal00_0-1711510858633.png

 

1 ACCEPTED SOLUTION
danextian
Super User
Super User

Hi @Saqibmughal00 

 

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 ) )




Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

View solution in original post

3 REPLIES 3
danextian
Super User
Super User

Hi @Saqibmughal00 

 

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 ) )




Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Thanks, Thats what exactly I did and it sorted the problem

RossEdwards
Solution Sage
Solution Sage

It looks like Adjusted scope is just a text field?  I would suggest you need an adjusted scope table and join it to both tables, like you did with date.

 

The easiest way to do this would be in Power Query.

  1. New query using "Reference" to the query "Force Allocation Data..", remove other columns except for Adjusted Scope.  Mark this query as "Enable load" False
  2. New query using "Reference" to the query "Planned", remove other columns except for Adjusted Scope.  Mark this query as "Enable load" as False
  3. Append both into a single table.  Use the "Remove Duplicates" to get a distinct list of Adjusted Scope.  Import that table into your model
  4. Join both tables to your new adjusted scope table.
  5. Ma

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors