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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Json Table from API

I have a custom data connector that brings in data to Power BI in Json. I'm getting the container level of the Json Tables. I need the actual table to display in the Navigation tool how do I get down one level in the data query? 

 

Screen Shot 2019-03-07 at 12.56.24 PM.pngScreen Shot 2019-03-07 at 12.19.03 PM.png

5 REPLIES 5
cglacken
New Member

Hi! I am trying to solve this problem as well. Were you able to find a solution?

Hello @cglacken 

 

I don't get really what is needed. A json file can contain different types of list and records. And a query itself can only give back one table or again a record/list of other tables. Could you explain what exactly is needed?

 

BR

 

Jimmy

Thanks for the reply @Jimmy801,

 

Here is what I am trying to do:

 

I have a custom Data Connector that utilizes and XML import. This connector returns a dynamic set of tables based on the paramters used for the call. When I call the connector, I get the Navigator window that displays all returned tables and lets me preview them or select which ones I want to load into Power BI. This is pretty user friendly. I have been trying to figure our how I can recreate this with JSON as well, in the hopes that JSON can add some performance time improvements.

 

What I get with JSON is what you said. I get a query made up of my table names and list of records. I never get to the navigator window. I have a custom function I made that automatically expands the tables out into their own queries one by one - but that is not as user friendly as the navigator window and the user would not have access to this function unles they were using a template I provided.

 

It may be that what I am trying to do is not possible, but I wanted to check when I saw this question

v-juanli-msft
Community Support
Community Support

Hi @Anonymous 

Check the video regarding "POST data to REST API URL in Power BI (Use JSON / XML ODBC Drivers for Web API and Files)" and 

the article "Using Power BI with JSON Data Sources and Files"

 

Best Regards

Maggie

 

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

Anonymous
Not applicable

withData = Table.AddColumn(getRecords, "Data", each Record.ToTable(Json.Document(Web.Contents(url & "/api/v2/report/" & [id] & "/latest/output?auth=" & hash, [ Headers = [Cookie = "userkey=" & userId & "/" & hash & "/" & secureKey, Accept = "application/json" ]])))),

This my query for the tables.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.