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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Top Solution Authors
Top Kudoed Authors