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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Ana-Maria
Regular Visitor

Export to xlsx or csv 12.000.000 rows split in files that will have only 10.000 rows

Hello,

 

I have a table in Power BI with a little over 12 million rows. I need to export this table into excel/csv files, and each to have  maximum 10.000 rows.

How can I condition this ...with power apps ?

 

Thank you,

Ana

 

1 ACCEPTED SOLUTION
ibarrau
Super User
Super User

Hi. I think it might be important if you can explain why this is important or what you want to acomplish with that. Because it's not very straight forward or make sense as a data architecture perspective.

You have integrated 12 million rows at power bi and now you want to split it by 10k rows files. I think it might be tricky but possible. I would probably add a new column at the power query data model that writes a number for each 10k rows. That way you can filter by that column 10k rows.

Then using the power bi rest API you can check how many samples of 10k rows are and loop it executing a dax query to the model that filters by the new column.

https://learn.microsoft.com/en-us/rest/api/power-bi/datasets/execute-queries-in-group

I hope that make sense. 


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Happy to help!

LaDataWeb Blog

View solution in original post

2 REPLIES 2
ibarrau
Super User
Super User

Hi. I think it might be important if you can explain why this is important or what you want to acomplish with that. Because it's not very straight forward or make sense as a data architecture perspective.

You have integrated 12 million rows at power bi and now you want to split it by 10k rows files. I think it might be tricky but possible. I would probably add a new column at the power query data model that writes a number for each 10k rows. That way you can filter by that column 10k rows.

Then using the power bi rest API you can check how many samples of 10k rows are and loop it executing a dax query to the model that filters by the new column.

https://learn.microsoft.com/en-us/rest/api/power-bi/datasets/execute-queries-in-group

I hope that make sense. 


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Happy to help!

LaDataWeb Blog

Hi, I needed to upload this data in an internal app (at work). The problem is that the internal app has a restriction and I am allowed to upload excels only with maximum 10.000 rows.
In the end, I added an Index column and downloaded manually each time excels of 10.000 rows.

So the issue is solved, but if another solution exists, that would be good to know.

AnaMaria_0-1718290008004.png

 

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!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

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