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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

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

August Carousel

Fabric Community Update - August 2024

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