Forum Discussion

nnouchi's avatar
nnouchi
Helper I
7 years ago
Solved

Extracting Data from API and transform into tables

Greetings Power BI community,   I am having trouble understanding the steps necessary to extract and format data from an API source to be used practically in Power BI.  This is the outcome o...
  • ImkeF's avatar
    7 years ago

    Hi nnouchi,

    there is a very easy way to retrieve the TS-data from Quandl:

     

    let
        Source = Json.Document(Web.Contents("https://www.quandl.com/api/v3/datasets/LME/PR_NI.json?api_key=xxxxxxxx")),
        dataset = Source[dataset],
        ExpandAllQuandl = Table.FromRows(dataset[data], dataset[column_names])
    in
        ExpandAllQuandl

    Works with all sources and will definitely refresh in the service as well.