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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
lepdeffard
Frequent Visitor

Composite Model Help

Here is my situation:

 - Table1 is from an existing dataset and pulled into my dashboard via DirectQuery

 - Table2 is from a local Excel file (but will probably be changed to a Sharepoint file)

 - Table1 and Table2 are related, but I cannot set up a relationship

 

Consider Table1 being a list of tasks and Table 2 being a list of employees and a common column like an Employee ID. I need to be able to populate a list of employee names (Table2) and the tasks they complete (Table1), but I'm getting no where.

 

I have read every piece of documentation regarding direct queries, composite models, and calculated columns, but I cannot get this to happen. Every example I test seems to not work for my data. Please help, I am out of ideas! If it is relevant at all, I do not have access to the underlying datasource from Table1.

1 ACCEPTED SOLUTION
lepdeffard
Frequent Visitor

I was able to get this working by setting up a calculated table pulling the columns from the direct query table which I was then able to use to set up relationships with the imported table. My DAX code as follows:

NewTable = CALCULATETABLE( SUMMARIZE ( Table1, <List of Table 1 Colums Needed>) )

 

The list of Table 1 columns needed includes the "join" column. This works and I think will get me through, but definitely let me know if there is a better way to go about this task.

View solution in original post

1 REPLY 1
lepdeffard
Frequent Visitor

I was able to get this working by setting up a calculated table pulling the columns from the direct query table which I was then able to use to set up relationships with the imported table. My DAX code as follows:

NewTable = CALCULATETABLE( SUMMARIZE ( Table1, <List of Table 1 Colums Needed>) )

 

The list of Table 1 columns needed includes the "join" column. This works and I think will get me through, but definitely let me know if there is a better way to go about this task.

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.