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

Community site session details

Session Id :
Power Apps - Power Query
Suggested answer

Power BI data to Excel Online/Sharepoint using Power Automate

(1) ShareShare
ReportReport
Posted on by
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.  
Categories:
I have the same question (0)
  • Suggested answer
    Jon Unzueta Profile Picture
    1,213 Super User 2025 Season 2 on at
    Power BI data to Excel Online/Sharepoint using Power Automate
     
     

     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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Congratulations to the July 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