Complete the code to import data from a web URL in Power BI.
let
Source = Web.Contents([1])
in
SourceUse Web.Contents with the web URL as a string to import web data.
Complete the code to parse JSON data from a web source in Power BI.
let
Source = Web.Contents("https://api.example.com/data"),
JsonData = Json.Document([1])
in
JsonDataUse Json.Document to parse the content returned by Web.Contents.
Fix the error in the code to correctly import CSV data from a web URL.
let
Source = Web.Contents("https://example.com/data.csv"),
CsvData = Csv.Document([1], [Delimiter=",", Encoding=1252])
in
CsvDataThe Csv.Document function needs the binary content from Web.Contents, which is stored in Source.
Fill both blanks to convert web JSON data to a table and expand the 'items' column.
let
Source = Web.Contents("https://api.example.com/data"),
JsonData = Json.Document(Source),
TableData = Table.FromList([1], Splitter.SplitByNothing()),
Expanded = Table.ExpandRecordColumn(TableData, "Column1", [2])
in
ExpandedExtract the 'items' list from JSON, convert it to a table, then expand the columns by specifying their names as a list.
Fill all three blanks to import XML data from a web URL and convert it to a table.
let
Source = Web.Contents([1]),
XmlData = Xml.Tables([2]),
TableData = XmlData[3]
in
TableDataUse Web.Contents with the URL, then pass the content variable to Xml.Tables, and finally select the first table with {0}.