web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Export csv file, compa...
Power Automate
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!

Categories:
I have the same question (0)
  • Robby_WW Profile Picture
    115 on at
    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.
     
     
  • takolota1 Profile Picture
    4,974 Moderator on at
    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.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 523 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard