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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
joshua1990
Post Prodigy
Post Prodigy

Incremental refresh with left join

Hello everyone!

I am trying to add some ERP Data through sql into my data set.

I have one Order Master, that cointains all dates, value etc per order nr:

OrderCreatedStartedFinishedQuantityValue
101.01.201901.01.201901.02.2019505
201.01.201901.01.201901.03.201945

 

And I have a Item Ledger, that contains all booking types per order nr:

OrderBookingValueDate
1Export502.02.2019
1Entry501.02.2019

 

Now I would like to include the Item ledger with an incremental refresh into my dataset.

But I would like to add just data from Item Ledger for orders that are also in the Order master listed.

This would be a simple left join in sql, right?

Is this also possible when adding an incremental refresh in the end?

 

7 REPLIES 7
mwegener
Most Valuable Professional
Most Valuable Professional

Hi @joshua1990 ,

 

did you see my blog post on the subject?

 

Incremental Refresh with Subqueries 

https://community.powerbi.com/t5/Community-Blog/Incremental-Refresh-with-Subqueries/ba-p/1003337

 

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials


Greg_Deckler
Community Champion
Community Champion

@joshua1990 - Well, you can do a left join in Power Query Editor using a Merge query. Not sure I 100% understand the dilemma with incremental refresh and such.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

I mean, from a performance point of view I would do the join within a individual sql statement, right?

But that would also mean I can't add an incremental refresh in the end, right?

I guess I have to do all operations in Power Query.

@joshua1990 - If you want to only load the main table once and do incremental on the ledger, then yes I would think you would need to do that in Power Query and then the Merge there. Alternatively, if you did the join in SQL as a view perhaps, could you do an incremental against that view? I'm not sure I see why not exactly but I may not be thinking it through 100%



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Thank you so much for your support @Greg_Deckler ! 
I have just read only rights in our data warehouse. 
If I join the two tables in a sql I am working on a non foldable query, right? 
that would mean I can't add an incremental refresh. 
my question is: If I want to add an incremental refresh have I to use M to join two tables? 
Or can I join two tables within a SQL select and then add an incremental refresh?

@joshua1990 - do NOT use the Advanced Query feature in Power BI where you can enter a SQL statement. It prohibits all further query folding and Incremental Refresh will not work. It seems that might be what you are doing, but you haven't specifically said.

 

Either create a View in SQL Server and connect Power BI to that, or do all of it in the Power query editor itself. It will fold just fine.

 

If this doesn't help, please post back with what you are specifically doing all the way through.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

@joshua1990 I do not believe that joining two tables in SQL necessarily creates a non-foldable query. Give it a shot and see if you can see the native query. It's worth the 10 minutes it would take to write the join SQL syntax.

 

https://docs.microsoft.com/en-us/power-query/power-query-folding

https://docs.microsoft.com/en-us/power-bi/guidance/power-query-folding

 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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
Top Kudoed Authors