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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

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
Fabric Data Days is here Carousel

Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

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.