Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi,
I'm trying to get data into PowerBI through an API. I chose "web" and connected the data like this:
= Web.Contents("myurl")
The data is loading to such format:
| next | (URL)?pageSize=5¤tPage=2 |
| self | (URL)?pageSize=5¤tPage=1 |
| events | [List] |
| statistics | [Record] |
I can only change the max page size to 2000, but I have way more records. Is there a way to load every page of the data?
I tried to find an answer, read many blog posts, for example from Chris Webb or this one https://medium.com/@marktiedemann/how-to-do-pagination-in-power-query-430460c17c78, but none of it seems to work (or I'm simply not able to apply it correctly)... any hints? 🙂
Hi @Anonymous ,
Are the replies above helpful?
If they are, please always accept the replies making sense as solution to your question so that people who may have the same question can get the solution directly.
If not, please give us more details.
Best Regards,
Icey
Hi @Anonymous ,
you can find a couple of approaches here: https://community.powerbi.com/t5/Desktop/how-to-create-a-query-that-paginates/td-p/20047
Please try some of them out. If they don't work, please post what you've tried so far with corresponding error messages to that we can narrow it down further.
Imke Feldmann (The BIccountant)
If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!
How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 19 | |
| 10 | |
| 9 | |
| 7 | |
| 6 |