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
sceccolini
Frequent Visitor

Recursive execution of REST from Power BI table

I have a table with a column containing the services I need to call to retrieve some other data, which needs to be modified with other further steps once I can return the records from these services.

 

Table.png

 

Meaning I need to execute these services and report the returned values in some other columns.

 

How can I do it?

 

Thanks
Simone

1 ACCEPTED SOLUTION

@sceccolini 

Can you use below query in a blank query and paste any one of the URL and let me know what you see?

let
Source =Json.Document(Web.Contents("URL"))
in
Source

Or use the below file and let me know.

View solution in original post

5 REPLIES 5
NaveenGandhi
Super User
Super User

Hi @sceccolini 

Can you provide sample output you are looking for(Sample data inside one of the URL and what you need to pick and bring it to the new column)? it will be easy to understand the requirement.


Thanks,
NG

Hi Naveen,

 

thanks for the reply. This is an extract of the properties returned by each service in the column

 

sceccolini_0-1721985615370.png

 

Of course, tthe REST invocations are always on the same service, which returnes the same properties; each service will just change the values of the returned properties. Among the above properties, we will need some of them, which will be configured as dedicated columns.

 

Thanks

Simone

 

@sceccolini 

I have used a sample API to create a POC(This has JSON in multiple rows, so the end table will expand, It might not be the case with you).

If the first step works fine(JSON expansion), then the remaining can be tweaked depending on your format.

Attached file here has the POC.


If this post helps, then please consider Accept it as the solution to help the others find it more quickly. Appreciate you kudos!!

Follow me on LinkedIn!!!


@sceccolini 

Can you use below query in a blank query and paste any one of the URL and let me know what you see?

let
Source =Json.Document(Web.Contents("URL"))
in
Source

Or use the below file and let me know.

It works! I can just add a new custom column with this formula, and then I can manage it like any other transformation. Thank you!

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!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.