Power BI and JSON data

流过昼夜 提交于 2020-01-03 17:18:13

问题


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?


回答1:


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




回答2:


This Answer may help now..

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

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

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

Here we go You can now use this result !

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/




回答3:


Retrieving data from a .json file brings in 'Records'. Each row of data is returned as a 'Record' which is a List. Each record in 'Records' is a hyperlink that opens the row elements. You could convert the 'Records' into a table, but you get a Table with a single column which has all the records with each record a row from the original JSON data.

Here is a link to few more details: http://hodentekmsss.blogspot.com/2016/11/retrieving-json-data-in-power-bi.html



来源:https://stackoverflow.com/questions/33564718/power-bi-and-json-data

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!