Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe 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.
Hello all,
Ok so I have a report where my users can use a variety of filters to get the exact data they need from a table. Problem is that when they export to excel, at times they hit the 150,000 row limit for the .xlxs file. I don't want them to use the analyze in excel feature because it undoes all of the filters they put in, not to mention the datasources I am pulling from won't make sense to them. I'm wanting them to be able to export from excel and not have to do a bunch of work after in order to get the information they are wanting. What sort of workarounds can I employ? Are there any kinds of Powershell scripting I can use? What about a button with an R or python script that would export the filtered data? Or something easier that maybe I am missing? Any ideas would be greatly appreciated
Hi,
1. Create an Index Column starting from 0
2. Add Column Export page No where Export Page No = Number.RoundDown((IndexValue/ 150000), 0) +1 to create Export Page No
3. Create a Powershell Script to export records by Export Page No.. You may refer the script below:
4. While I can get the records exported in chunks of 150,000... I noticed that export strangely failed when the size was set for anything more than. There are only 12-13 columns in the table ad it shouldn't ideally fail for this kind of table. I have added an additional check
Hi @PBCIT ,
You can expand the option "Advanced options" to enter into SQL statement.
You may type codes like below to get limited data rows. See more :SQL TOP, LIMIT or ROWNUM Clause.
SELECT TOP 1000 product_name, list_price FROM production.products ORDER BY list_price DESC;
Best Regards,
Amy
Community Support Team _ Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@GilbertQ @v-xicai , the issue I have is that I need my end users to be able to export the table after they applied their filters in Power BI. The analysis in Excel is something I'm not sure would work because the data sources can be a little confusing to the end users in my company as they are not versed in database concepts and how everything is interconnected. The same would be the issue with the Advanced options Sql option. I'm looking for a way that my end users can do this. @GuyInACube do you have any ideas? I watch your videos all the time and I'm sure if there was something that could be done, you'd know it
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
37 | |
36 | |
32 | |
25 | |
24 |
User | Count |
---|---|
37 | |
26 | |
25 | |
21 | |
17 |