Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Power BI and JSON data

Tags:

json

powerbi

Is it possible to make Power BI read JSON data? I've spent an entire day yesterday to figure out how to convert the JSON data into a readable table in Power Bi, but with no luck.

I tried googling for hours, but there is no proper documentation anywhere.

I'm retrieving a JSON payload from my website and when I try to import, it shows the data like this:

Record
Record
Record
Record

Maybe there are any tutorials I can follow? Or perhaps another alternative to Power BI that would properly read and structure my JSON data?

like image 894
Such Much Code Avatar asked Dec 24 '22 12:12

Such Much Code


2 Answers

As mentioned in comments, just besides each Record (if headers), are you able to see any small box with two arrows, try clicking it.

like image 86
Vasim Avatar answered Dec 27 '22 10:12

Vasim


This Answer may help now..

First We have to convert this to table ->Click on the Icon in top left corner Icon label : To Table

Properties window will open. dont change anything Click on Ok.Now you can see the list converted to Column.

There is an arrow icon in the column -> Click on it

Arrow Icon

Main Step :In the property window uncheck "use original column name as prefix"

Here we go You can now use this result !

You will get tabular result from JSON

Refer Below Links :

https://www.mssqltips.com/sqlservertip/4621/using-power-bi-with-json-data-sources-and-files/

https://www.dutchdatadude.com/loading-multiple-json-files-using-power-query/

like image 35
developer_.net Avatar answered Dec 27 '22 11:12

developer_.net