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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
ukcala
New Member

Copy new rows from source to destination based on criteria

Hi, looking for some advice please. I'm collecting product volumetric data (codes, length, width, height etc) using a volumetrics machine which then outputs the data to a CSV file on a network share (the machine itself cannot directly import to other docuents/programs)

 

I have a 2nd document, a Master Volumetrics sheet (in SharePoint Online) which has 7000 rows of historic data.

 

What I'm trying to achieve is that each time a new row is added to the CSV, there is a check of the master based on the part code. If the part code exists, then do nothing, if it doesn't, then copy certain values from the source & create a new row in the destination 'Master'.

 

What's the best way to achieve this? Is it something that would be fairly easy to achive in Power Query for a complete novice?

 

Thanks!

1 REPLY 1
ImkeF
Super User
Super User

Hello @ukcala ,
Power Query and Power BI are designed to read existing data, not to write back to sources.
They also don't have triggers that react to certain events.
But if you're "just" looking for some special logic that has to be applied when you import data from 2 different sources and combine them in a special way before loading to the data model, I'd recommend to post sample data or upload a file with sample data.
Please check out these instructions:

https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...

 

help how to get your questions answered quickly - Microsoft Power BI Community 

 

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

Check out the February 2024 Power BI update to learn about new features.

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors
Top Kudoed Authors