The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi, I have to gather several files from the same folder in Sharepoint. I developed a function that receives a folder and a file name and returned me bytes, to use with the appropriate connector, like CSV.Document or Parquet.Document, for example.
(folder as text, file as text)=>
let
// splits url path using forward slash, remember to strip /:r:/
// then get first 5 pieces to build sharepoint folder url
sharepoint_path = Text.Combine(List.Range(Text.Split(folder, "/"), 0,5), "/"),
sharepoint_folder = SharePoint.Files(sharepoint_path, [ApiVersion = 15]),
//replace '%20' for space
folder_path = Text.Replace(folder, "%20", " "),
filter_files = Table.SelectRows(sharepoint_folder, each ([Folder Path] = folder_path)),
bytes = Table.SelectRows(filter_files, each (Text.Contains([Name], file)))[Content]{0}
in
bytes
My problem is:
This functions triggers the Dynamic Data Source warning. And this makes the report unable to schedule a refresh in Power BI service.
Have anyone bumped in this kind of problem? Have you found any workaround for this?
Best regards
User | Count |
---|---|
65 | |
60 | |
60 | |
53 | |
27 |
User | Count |
---|---|
181 | |
88 | |
70 | |
48 | |
46 |