1

I want to fetch data from GraphQl api in directly to Power Bi how I can That

1
  • Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer.
    – Community Bot
    Jan 9, 2022 at 16:09

1 Answer 1

0

If the auth for the API is API Key, Basic, Windows, or AAD, you can use the Web connector. For other Authentication scenarios you may need a custom connector.

And I would use the Advanced Power Query Editor for this, rather than trying to configure it through the Wizard.

EG

let
    uri = "https://countries.trevorblades.com",
    query = "{
  country(code: ""BR"") {
    name
    native
    capital
    emoji
    currency
    languages {
      code
      name
    }
  }
}",
    source = uri & "?query=" & Uri.EscapeDataString(query),
    resp = Web.Contents(source),
    json = Json.Document(resp,65001),
    data = json[data],
    country = data[country],
    #"Converted to Table" = Record.ToTable(country),
    #"Pivoted Column" = Table.Pivot(#"Converted to Table", List.Distinct(#"Converted to Table"[Name]), "Name", "Value")
in
    #"Pivoted Column"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.