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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Anonymous
Not applicable

REST API - Multiple Requests built on each other / Looping trough first table to build second

Hello Everybody

 

I was looking trough the forum but could not really find threds related to the subsequent challange, which might be caused by the fact that I do not really know how to call my issue.

 

Situation:

We do use a quality management SaaS solution. They do offer an API which would allow us to get the Data in PowerBI to display the results. 

 

Problem: 

In order to receive the desired Checklists with the respective quality control data, they do require a specific Object_ID in the URL:
https://xxxxxx.com/api/v3/assessments?object_id=12345

Therefore I do have to call for each of our 4000 Objects seperatly.

 

The Number of Objects can fluctuate, but they can also be called over the API, which returns a table (simplified):

IDName
12345Object1
67890Object2

 

Required Solution:

Im therefore looking for a PowerQuery Statement, that loops trough the Object-Table, getting the respective IDs, to call the according checklists.

 

If you have any hints where to look for respective Input on how this might be done or give me direct Input on a possible solution, you help would be highly appreaciated. 

 

Best Regards

 

Philippe

 

1 ACCEPTED SOLUTION
PhilipTreacy
Super User
Super User

Hi @Anonymous 

If you have a query that calls the API and returns a table of ID/Objects - let's call that query GetObjID then you can get the Checklist for each of those ID'swith this code

Source = List.Transform(GetObjID[ID], each Web.Contents("https://xxxxxx.com/api/v3/assessments?object_id=" & Text.From(_)))

Regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


View solution in original post

2 REPLIES 2
mahoneypat
Microsoft Employee
Microsoft Employee

Please see if this video helps.

(3) Power BI - Tales From The Front - REST APIs - YouTube

 

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


PhilipTreacy
Super User
Super User

Hi @Anonymous 

If you have a query that calls the API and returns a table of ID/Objects - let's call that query GetObjID then you can get the Checklist for each of those ID'swith this code

Source = List.Transform(GetObjID[ID], each Web.Contents("https://xxxxxx.com/api/v3/assessments?object_id=" & Text.From(_)))

Regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Helpful resources

Announcements
Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.