Quantcast
Channel: Power Query topics
Viewing all articles
Browse latest Browse all 31251

Multi-Dimensional Json file to Table

$
0
0

I have a Json file formatted like so:

{
    "items": [
        {
            "tableName": "incidents",
            "count": 20000,
            "columnNames": [
                "id",
                "subject",
                "category"
            ],
            "rows": [
                [
                    "61",
                    "Test",
                    null
                ],
                [
                    "65",
                    "TEST 2",
                    null
                ], ........Etc

I pull this Json file using a web call to an API (specifically Oracle Right Now).

 

*Note that the column names are listed as a separate entitie to the rows.

 

When I follow the suggestions on here to expand out the data I am unable to get the column headings and rows in a single table. start.pngI can navigate to the column names list OR the rows list. I can transpose the column names list to table headings like so:

  Transpose table.png

 

 But then there are no rows to fill in the columns as the rows are in a higher \ adjacent level. 

 

Navigating to the rows list simply gives me this:Rows.png

 

 

 

How do I manipulate this Json file using Power Bi to display a single table with the columns as the columns and the rows as the rows?   

 

I have spent probably too much time on this and as I'm new to M query language playing around in advanced editor has proven not very fruitful. 

 

Any help will be much appreciated. 

 

 

 


Viewing all articles
Browse latest Browse all 31251

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>