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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Bone
Frequent Visitor

Composite Model Approach - combining data through matching columns

Hello -- I haven't combined direct query and imported data together and am wondering about the best approach to do so.  It seems that there are limitations to the formulas that I can use with Direct Query, yet there is too much data to Import.

 

Here is the scenario:

The Direct query has Employee Name, Client ID, Actual Hours charged for client and Date

The Import table has predicted Hours for each Employee, Client and Hours.  We lump the hours by week (sunday date)

The goal is to create a table that has:

Employee Name | Client ID | Week Beginning (Sunday) | Predicted Hours | Actual Hours |

 

I can pull the data from the direct query easily enough and assign a week beginning to it.

I can import the data in excel with the predicted ok.

 

THe question is, how do I best combine these two data sources?

 

I can't seem to write any column formulas using the direct query tables/columns. Why is this?

 

Also, I will need a formula that says 'if employee name (import) matches employee name (direct query) AND client (import) matches client (direct query) AND the week beginning (import) matches week beginning (direct query) then bring back the hours (either actual or predicted depending on where I should be pulling everything together).

 

How would you approach this problem?  Should I try to create a table? If I create a formula that pulls the hours either from the direct query or the import, where should this formula reside?

 

 

 

3 REPLIES 3
v-luwang-msft
Community Support
Community Support

Hi @Bone ,

Has your problem been solved, if so, please consider Accept a correct reply as the solution or share your own solution to help others find it.

Best Regards
Lucien

I haven't figured it out yet. Still working on it.

amitchandak
Super User
Super User

@Bone , Use manager aggregations. The direct query table is the base and import is having aggregated data

https://docs.microsoft.com/en-us/power-bi/transform-model/aggregations-advanced

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

July Power BI Update Carousel

Power BI Monthly Update - July 2026

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

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.

Top Solution Authors