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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
mklinger
Regular Visitor

how to create a query that paginates?

I am trying to work on getting all records to pull in and I have tried to apply several of the post but seeing how I am new to Power Query I am having trouble. My web source only allows me to get 50000 records at a time but I need to get all records which are around 250000. Any way I could get this to paginate? Here is my code so fare 

 

let
Source = Json.Document(Web.Contents("https://<website>/api/<company>/issues")),
issues1 = Source[issues],
#"Converted to Table" = Table.FromList(issues1, Splitter.SplitByNothing(), null, null, ExtraValues.Error),
#"Expanded Column1" = Table.ExpandRecordColumn(#"Converted to Table", "Column1", {"id", "number", "description", "corrective_actions", "project_id", "project", "area_id", "area", "area_path", "area_full_path", "item_id", "item", "item_path", "item_full_path", "item_master_id", "item_master", "item_master_path", "item_master_full_path", "standard_issue", "responsible_company", "responsible_company_id", "responsible", "created_by", "created", "closed_by", "closed", "modified", "started", "fix_required", "age", "discipline_id", "discipline", "specialty_id", "specialty", "status_id", "status", "category_id", "category", "state", "inspection_id", "inspection_number", "last_assigned", "template_id", "template", "ent_struc_item", "custom_field_1", "custom_field_2", "custom_field_3", "custom_field_4", "custom_field_5"}, {"Column1.id", "Column1.number", "Column1.description", "Column1.corrective_actions", "Column1.project_id", "Column1.project", "Column1.area_id", "Column1.area", "Column1.area_path", "Column1.area_full_path", "Column1.item_id", "Column1.item", "Column1.item_path", "Column1.item_full_path", "Column1.item_master_id", "Column1.item_master", "Column1.item_master_path", "Column1.item_master_full_path", "Column1.standard_issue", "Column1.responsible_company", "Column1.responsible_company_id", "Column1.responsible", "Column1.created_by", "Column1.created", "Column1.closed_by", "Column1.closed", "Column1.modified", "Column1.started", "Column1.fix_required", "Column1.age", "Column1.discipline_id", "Column1.discipline", "Column1.specialty_id", "Column1.specialty", "Column1.status_id", "Column1.status", "Column1.category_id", "Column1.category", "Column1.state", "Column1.inspection_id", "Column1.inspection_number", "Column1.last_assigned", "Column1.template_id", "Column1.template", "Column1.ent_struc_item", "Column1.custom_field_1", "Column1.custom_field_2", "Column1.custom_field_3", "Column1.custom_field_4", "Column1.custom_field_5"})
in
#"Expanded Column1"

1 REPLY 1
v-yuezhe-msft
Microsoft Employee
Microsoft Employee

@mklinger,

Please review the following similar thread about how to create a query that paginates.

http://community.powerbi.com/t5/Desktop/how-to-create-a-query-that-paginates/m-p/163768/highlight/fa...

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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

Top Solution Authors