I have multiple files to be imported from Sharepoint to Power BI through Power Query. The file format is "AAA_yyyymmdd.xlsx". The file are generated from a system, more than once daily. I would like to take only the latest file of each day and append it to Power BI.
I have tried Groupby to get MAX(date created), it is good to go.
Yet, there are certain file with special case that are modified manually before uploaded to Sharepoint and its file name will change to something like "AAA_yyyymmdd.XLSX".
How to include all file that ends with ".XLSX" and the rest just take the latest file of the day? (I have added new column to identify which one is manual file, but do not have better idea to integrate both conditions).
Any help is greatly appreciated.
↧
Only take latest file of each day from Sharepoint
↧