Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Export csv file, compare to other csv file, and create csv file with changes

(1) ShareShare
ReportReport
Posted on by 232

Hi all,

 

I have been tasked to find a way to compare two reports (one from the current month, one from the previous month), find any changes and then create a excel file with those changes on.

 

My data is in dataverse and exports monthly using a flow so I always have a monthly back up. 

Is there a way of doing this? There's about 60-70 columns in the csv files. 

 

Thanks!

  • takolota1 Profile Picture
    4,890 Super User 2025 Season 1 on at
    Export csv file, compare to other csv file, and create csv file with changes
    It is possible to efficiently get your CSV data from both files into JSON arrays with something like...
    https://community.powerplatform.com/galleries/gallery-posts/?postid=189733b3-bea9-41b3-bc01-ec0fa209005d
     
    Then once both the CSVs are in JSON arrays you can use a series of intersect( ) expressions, union( ) expressions, & Filter array actions along with primary keys to identify the rows with changes.
    This build contains an example of such a set-up...
    https://community.powerplatform.com/galleries/gallery-posts/?postid=e1e47e8f-9bfd-4d9c-9b43-68ced3a6cbfb
     
    From there you can get both the new version of the row from the new CSV & the old version of the row from the preceding CSV.
  • Robby_WW Profile Picture
    115 on at
    Export csv file, compare to other csv file, and create csv file with changes
    Hi,
     
    There is a way to compare 2 .csv files but it will take a very long time on big datasets.
    I'm afraid there's no real good way of doing this.
     
     
    Creating a new .csv file is not possible, i believe.
     
     

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492