简体   繁体   English

将 Firebase 连接到 Microsoft Power BI 时出错

[英]Error when connecting Firebase to Microsoft Power BI

I am looking to connect Power BI to Google Firebase.我希望将 Power BI 连接到 Google Firebase。

I've followed the below steps,我已经按照以下步骤,

  1. Get Data > Blank Query获取数据 > 空白查询
  2. Entered the below Query输入以下查询
let
    Source = Json.Document(Web.Contents("url to firebase database")),
    #"Converted to Table" = Record.ToTable(Source)
    in
    #"Converted to Table"

I've entered the url but it looks like its expecting a JSON output.我已经输入了 url,但它看起来像是在期待 JSON output。 How can I get a JSON output to include on Power BI to visualise data stored on Firebase?如何获得 JSON output 以包含在 Power BI 上以可视化存储在 Firebase 上的数据?

在此处输入图像描述

For what I am looking in the error message in image, the problem in not connecting with Firebase, instead the problem is the query you are using, the variable source is getting the content of the page and that is why is giving you that error.对于我在图像中的错误消息中查看的内容,未与 Firebase 连接的问题,而不是您正在使用的查询,变量源正在获取页面的内容,这就是为什么给您该错误。

You can try this command that return the Json of the a collection with the values in it.您可以尝试使用此命令返回集合的 Json 及其中的值。

projects/{project_id}/databases/{databaseId}/documents/{document_path}/

The document path is the document that you want the information And the databaseId if you don't know which is it, it is probably (default) you need to put the () in the url of the request文档路径就是你要的信息的文档和databaseId如果你不知道是哪个的话,可能(默认)你需要把()放在请求的url中

Here you can see how the Json is structured 在这里你可以看到 Json 的结构

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM