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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
thisisausername
Helper II
Helper II

Pagination with cursor rather than offset

I need to paginate through a dataset that has a 'next' value of the last DocumentId in each page of data.

 

How can I create a query that lets me do the following:

 

1) Loads initially a 1st URL that contains the root search query (i.e. has no filter on DocumentId)

e.g. www.test.com/powerbi/search

2) From this first page, get the last DocumentId. (This takes a few transformation steps)

3) Load the next page with a 2nd URL which contains a filter for DocumentId = the last DocumentId from the previous page. 

e.g. www.test.com/powerbi/search?$cursor=LastDocumentIdFromPreviousPage

4) Keep repeating steps 2) and 3) until there is no more data. 

 

I've tried to look into this but can't find an example which shows how to have step 2) occur using multiple transformation steps (not just a single step). Thank you.

1 REPLY 1
miguel
Community Admin
Community Admin

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors