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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Append a CSV data to a...
Power Automate
Suggested Answer

Append a CSV data to an existing Excel file

(0) ShareShare
ReportReport
Posted on by 6
Hi,
 
I am trying to append a data extracted from power BI to an existing excel file/rows
 
 
I have successfully created the CSV data already, but I don't know how to use the compose step so that I can move on to the Add a row into a table.
or is there another way to append the created CSV table to the existing excel file?
 
Thank you!
Categories:
I have the same question (0)
  • Suggested answer
    Power Platform 1919 Profile Picture
    2,205 Super User 2026 Season 1 on at
    Hi @KL-02090100-0 , can you explain your scenario a little bit.
    if you’re end goal is just adding rows to excel file . then you won’t need CSV action (instead use Select Action for column mapping)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    on at
     
    What you need to do is build an Array of the data (which you say you have a Table, not sure what that means), but what you wanted to do it
     
    1. Get the Data from Power BI
    2. Add an Apply to Each action, with the input being the output from the Power BI Data
    3. Then inside the Apply to Each you would have your Add a Row into a Table
    --And since Apply to Each is... essentially a Loop (sort of), you would use the Dynamic Property Values from step 1 (my steps list not yours)
    where the data comes from the columns in power bi dataset and it would be pointing to the Row of data in the dataset based on the ordinal
    in the loop. As when you get data, it gives it to you in JSON, Array format so you can loop it.
     
    for Example let's pretend you had a column named FOO in Power BI, then when you set the Input to the Apply to each to the proper element of the Dataset, for example in SharePoint or Excel it would have body/value (and rows are under value in an array), then in your New Items data you would put something like
    item()?['FOO'] where item() represents the CURRENTITEM of the loop and foo was your Column name. Putting the ? in between the path, ensures that if the Column is NULL or the property doesn't exist, it doesn't cause an unhandled exception in your flow.
     
    Does that make sense?

    If these suggestions help resolve your issue, Please consider Marking the answer as such and also maybe a like.

    Thank you!
    Sincerely, Michael Gernaey
  • KL-02090100-0 Profile Picture
    6 on at
     
    Thank you for the suggestion. So I should continue from Start a Query from a data set? Because that's where I extracted my table from PBI. Or is there another way to extract 
     
     
    also, I do not have a dynamic content appearing on my Add a row into a table
     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 976

#2
Valantis Profile Picture

Valantis 863

#3
Haque Profile Picture

Haque 547

Last 30 days Overall leaderboard