Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
PowerAutomater
Helper II
Helper II

How to export an Excel file (not CSV) via Power Automate button?

I have a power automate button/visualiser in Power BI which triggers the following flow:

PowerAutomater_0-1736376410569.png


This works fine except I have hit the CSV row limit, and for some reason I can only get 15000 rows. I have read that with an xlsx you can have more rows than a CSV, so I have tried to adjust the flow but cannot work out how to create an xlsx file instead of a CSV. If I change the file extension in the "Create a file" action the file becomes invalid and cannot be open, and I am not sure what to replace the "Create a CSV table" action with.

Can this be done?

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

The limit is elsewhere - the size of the Base64 encoded string.

 

You can create the Excel file and table directly and then you can use the Graph API to batch upload rows into the table. 

 

lbendlin_2-1736379943917.png

lbendlin_4-1736380155595.png

 

 

 

 

Note that your flow action seems to be decoupled from your Power BI user experience. Make sure you include the expected filters in your DAX queries.

 

View solution in original post

3 REPLIES 3
lbendlin
Super User
Super User

The limit is elsewhere - the size of the Base64 encoded string.

 

You can create the Excel file and table directly and then you can use the Graph API to batch upload rows into the table. 

 

lbendlin_2-1736379943917.png

lbendlin_4-1736380155595.png

 

 

 

 

Note that your flow action seems to be decoupled from your Power BI user experience. Make sure you include the expected filters in your DAX queries.

 

Sorry shouldn't I be creating the excel table after running the query? Since the table needs to contain the contents of the Power BI query? Also you have included a post action whereas I actually need to create an xlsx file.

Please check my screenshots again. The first two steps create the Excel file.

 

Then it is a matter of preference what you do first. But assuming you need to run multiple queries (to avoid hitting the row limit) then creating the table first makes more sense.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.