Skip to main content
Community site session details

Community site session details

Session Id : /+cT8C7MdnYoX215Ws4v1u
Power Apps - Power Query
Unanswered

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

Like (0) ShareShare
ReportReport
Posted on 3 Apr 2024 19:30:08 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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 637 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 570 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 473

Featured topics