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 Apps / Power BI data to Excel...
Power Apps
Suggested Answer

Power BI data to Excel Online/Sharepoint using Power Automate

(1) ShareShare
ReportReport
Posted on by 2
I have excel workbook in my sharepoint that is link to my power BI. In my excel workbook, there is two worksheet called "comment" and "main". i would like to update/copy the data in my power BI into the "comment" tab of the same excel workbook respectively. To update which excel sheet is based on the "Folder Path" + Source.name in my data in power BI. Note to only use one  folderpath +source name to locate and know which excel file am i referring to as there is one for each row but i dont want to export every row of folderpath + source name it is to just locate which excel file as it changes based on what the user filter.  
data available .png
Categories:
I have the same question (0)
  • Suggested answer
    Jon Unzueta Profile Picture
    1,834 Super User 2026 Season 1 on at
     
     

     Solution Outline

    1. Power BI Setup

    • Ensure your Power BI model includes:
      • A table with Folder Path and Source.Name.
      • A filter or slicer that allows the user to select one file.
      • The data you want to export to Excel (e.g., a table or visual containing comments).

    2. Export Logic

    Power BI does not natively write back to Excel or SharePoint. So, you’ll need to use Power Automate or a custom script to handle the export.


    🔄 Option A: Power Automate Flow

    You can create a Power Automate flow that:

    1. Triggers when a button is clicked in Power BI (via Power Automate visual).
    2. Reads the selected Folder Path + Source.Name from Power BI.
    3. Locates the Excel file in SharePoint using that path.
    4. Clears and writes the new data into the "comment" worksheet.

    This requires the Power BI data to be passed into Power Automate using parameters.


    🛠️ Option B: Python Script (Manual or Scheduled)

    If you're okay with a manual or scheduled process, a Python script using pandas and openpyxl (or xlwings) can:

    1. Read the filtered data from Power BI (exported as CSV or via API).
    2. Identify the correct Excel file using the selected Folder Path + Source.Name.
    3. Open the Excel file from SharePoint (via OneDrive sync or SharePoint API).
    4. Replace the "comment" worksheet with the new data.

    📌 Key Considerations

    • Only one file should be selected at a time in Power BI (enforce with a slicer or filter).
    • Write access to the Excel file is required.
    • If using Power Automate, ensure the Excel file is closed (not locked by another user).
     
    🏷️ Tag me if you have any further questions or if the issue persists.
    ✅ Click "Accept as Solution" if my post helped resolve your issue—it helps others facing similar problems.
    ❤️ Give it a Like if you found the approach useful in any way.

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 Apps

#1
Vish WR Profile Picture

Vish WR 1,041

#2
11manish Profile Picture

11manish 676

#3
Valantis Profile Picture

Valantis 655

Last 30 days Overall leaderboard