You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi Max,
I tried to use this function in one of my solutions. However, current version cannot be used for Scheduled Refresh as Power BI can't determine data source.
I changed function - replaced argument FullPath with FileContent.
So, in query it look like FullPath = "C:\Temp\File.xlsx" file = File.Contents(FullPath) Source = fGetNumberFormats( file , "SheetName", 1, true) ... and so one...
Scheduled refresh works fine with such structure.
BR,
Ivan
The text was updated successfully, but these errors were encountered:
SourceSheets =
let
Source = Excel.Workbook(File.Contents(FullPath), null, true),
I think we could use a switch with the check for 1st argument - if it is text then use it as a full path (as intended), if it is binary then use it as a File.Contents
Using a File.Contents output by default as the 1st argument seems to be too complicated for users (although the function itself is also complex, but can be used as copy-paste solution).
I think we could use a switch with the check for 1st argument - if it is text then use it as a full path (as intended), if it is binary then use it as a File.Contents
Hi Max,
I tried to use this function in one of my solutions. However, current version cannot be used for Scheduled Refresh as Power BI can't determine data source.
I changed function - replaced argument FullPath with FileContent.
So, in query it look like
FullPath = "C:\Temp\File.xlsx"
file = File.Contents(FullPath)
Source = fGetNumberFormats( file , "SheetName", 1, true)
... and so one...
Scheduled refresh works fine with such structure.
BR,
Ivan
The text was updated successfully, but these errors were encountered: