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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Gekko1
Helper I
Helper I

Paginated API

So, I have this API which is paginated by the GeneralCode of the last row of the table. The parameters used in the endpoint are the code itself, and a range of dates. I tried to loop through the pages using the solution provided by PBI guy as seen here (https://pbi-guy.com/2022/07/05/how-to-loop-through-an-api-with-power-bi-without-knowing-last-page/). I havent achieved any success because my loop within the list.generate function only run the first iteration. The json returned by the API is shaped as seen below:

 

 

["LastCode":0000,

Results:{{ code: 0000

             Value: 11111},

             { code: 0001

             Value: 11112} ........}]

1 REPLY 1
lbendlin
Super User
Super User

please show a sanitized version of your Power Query code.

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors