Complete the code to connect Power BI to a SharePoint folder source.
let
Source = SharePoint.Files("[1]", [ApiVersion = 15])
in
SourceThe SharePoint.Files function requires the SharePoint site URL to connect to the folder.
Complete the code to filter files from OneDrive by file extension.
let
Source = OneDrive.Files(),
Filtered = Table.SelectRows(Source, each Text.EndsWith([Name], [1]))
in
FilteredTo filter Excel files, use the extension ".xlsx" in the Text.EndsWith function.
Fix the error in the code to correctly get files from a SharePoint document library.
let
Source = SharePoint.Files("[1]"),
Filtered = Table.SelectRows(Source, each Text.StartsWith([Folder Path], "Shared Documents"))
in
FilteredThe SharePoint.Files function requires the site URL only, not the full document library path.
Fill both blanks to load Excel files from a SharePoint folder and expand their content.
let
Source = SharePoint.Files("[1]"),
ExcelFiles = Table.SelectRows(Source, each Text.EndsWith([Name], [2]))
in
ExcelFilesUse the SharePoint site URL and filter for Excel files with the ".xlsx" extension.
Fill all three blanks to connect to OneDrive, filter CSV files, and load their content.
let
Source = OneDrive.Files(),
CSVFiles = Table.SelectRows(Source, each Text.EndsWith([Name], [1])),
Imported = Table.TransformColumns(CSVFiles, { [2], Csv.Document, [3] })
in
ImportedFilter CSV files by ".csv", transform the "Content" column using Csv.Document, and specify the output type as type table.