Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Query
Unanswered

Using Power Query to dynamically process CSVs from a SharePoint document library

(0) ShareShare
ReportReport
Posted on by 14

I have several Dataverse tables which are added to on a monthly basis (sometimes more). This is currently done by importing Excel files directly to the table in Dataverse after they're manually converted from CSV to Excel. I want to simplify this process as much as possible and have come up the follow proposal:

  1. Add the CSV files to a SharePoint document library - the library has a column which states which Table it's relevant to
  2. A Power Automate Flow then triggers once the item is added, and then triggers a relevant Dataflow
  3. Dataflow then starts and queries the relevant document library for the CSVs which have not yet been imported, it will then import the CSVs to the table
  4. Once complete, the Power Automate flow will then update a column on the SharePoint library with a value (e.g. 'Done')

For the solution I've proposed above, how can I create a dynamic query which only looks at files which match a certain criteria based on the column? (e.g. where the 'Done' column is blank). The file names will differ slightly from month to month, although the structure and layout will be the same.

 

In Power Query, I've managed to get as far as filtering just the relevant document library, which show me the files (currently three in there), but I want the ability to filter out based on several of the column values. How can I do this? It does give me the option to click into the files, and further query this but I don't want this to be absolutely queried (hope that makes sense!).

 

If anyone has any alternative proposals which they would recommend, happy to hear them. I'm still fairly new to Dataverse, Power Apps, and Power Automate. 

 

Thanks for any help!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Power Query

#1
mmbr1606 Profile Picture

mmbr1606 9 Super User 2025 Season 1

#2
SD-13050734-0 Profile Picture

SD-13050734-0 6

#3
Jon Unzueta Profile Picture

Jon Unzueta 2

Overall leaderboard

Featured topics