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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
joshua1990
Post Prodigy
Post Prodigy

Append just missing extracts

Hi experts!

I have a dataflow that combines two different data sources with the same table and structure:

  1. SQL Server
  2. Sharepoint

The structure for the table is as following:

  • Extract DateTime | Article | Value

The first columns display the datetime for the individual extract.

For now I have built a datafow that extracts all 2021-2023 extracts from the sharepoint and adds all 2024 extracts from the SQL server.

Now I would like to built a logic that actually checks if the extracts is already existing in the Sharepoint and if missing it takes it from the SQL server.

How is this possible to build in a Pro Workspace and a dataflow? Maybe without a merge since it takes a loot of time due to the size of the table.

 

 

2 REPLIES 2
Anonymous
Not applicable

I would check by getting the lists of the first columns of each table, and use them in List.Buffer(List.Difference(SharepointTable[DateTime], SQLTable[DateTime]))

 

Now you can use that on your main query as  a Table.SelectRows(SQLTable, each List.Contains(List.Buffer(NameofIntersectQuery), [DateTime]))

 

You could also right off the bat just use Table.SelectRows(SQLTable, each not List.Contains(List.Buffer(SharepointTable[DateTime], [DateTime])). This will make a WHERE .DateTime NOT IN (List), but if you have thousands of values in the list, that will eventually fail, hence the first solution.

 

--Nate

lbendlin
Super User
Super User

Not clear to me what you are trying to achieve. What's the business benefit of the dataflow?  Is this Gen1 or Gen2?

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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