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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Sunlightnsk
New Member

Incoming API with paginated data needed to be merged into Power BI report one table - Please advise

Hello,

I am new to Power BI and would like to ask for advice, please.

 

I have an API that sending a data from the Service Now. The Service Now table has a heavy data (a few Gbs) so the pagination was used preventing the time out in Service now. I am using a pageIndex as a parameter. Each page shows a number of thousands of data and I have hundreds of pages total. 

 

I need to create a report in Power BI showing all of that data. Knowing that its coming in paginated, I need to use pageIndex parameter to make an automatic query of all the data (page-by-page) and merging into one table. I would not need that if the Service Now would not be bottlenecking because of the timeout.

 

Could you please advise a solution for that?

 

 

As an option, I created a blank request with this query:

 

= (pageIndex as number) =>
let
apiUrl = "https://***reportdata?pageIndex=" & Text.From(pageIndex),
responseData = Json.Document(Web.Contents(apiUrl))
in
responseData

 

And another query:

pageIndexes = {1..5} // I want to get the data for the first 5 pages for now.

 

I was thinking to using the 2nd query and Invoke custom function, but all the panel is grey for me, however, the query is active.

1 ACCEPTED SOLUTION
Sunlightnsk
New Member

I was on the right way and almost made it, but this video helped me to complete the task:

https://www.youtube.com/watch?v=6tid-xh1t34

Watch from 15:45.

View solution in original post

1 REPLY 1
Sunlightnsk
New Member

I was on the right way and almost made it, but this video helped me to complete the task:

https://www.youtube.com/watch?v=6tid-xh1t34

Watch from 15:45.

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!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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