Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
asjam86
Frequent Visitor

Importing an Excel Spreadsheet where the table name changes.

Hi all,

 

Daily I recieve a spreadsheet which contains 1 sheet and only ever 1 sheet this will not change as it is coming from raw data inside a suppliers system. The sheet is called the date in YYYY-MM-DD format, with the previous days date on. (as this is historical reporting as to what went on yesterday), the actual file name remains the same each day IE "Daily Report.xls"

 

I use Flow to remove the attachment from my email and stick it into One Drive for Business (will be move to SharePoint ultimately). This works fine and it will overwrite the current file which is also OK. However the import it looking for data from a certain sheet IE 2016-08-21 (yesterdays report), todays being 2016-08-22, if I manually change the lookup it works fine again, but as I want this to just work without any manual intervention is there a way to get it to disregard what the sheet is called in the first instance and just carry on. Could I use a wildcard to just specify any sheet with 2016% ?

 

Thanks

Justin

1 REPLY 1
v-yuezhe-msft
Employee
Employee

Hi @asjam86,

Based on my research and test, you can make some changes for the whole workflow. You can add the sheet of each day into a single Excel Workbook named "Daily Report.xls", then add a parameter of sheet name in Advanced Editor following the instructions in this similar blog . After that, you can import all the data of different days into Power BI Desktop and filter data of specific day to create reports.

Another method is to use VBA code to change the name for the current sheet to a fixed name, for more details, please review this similar article and video.

Thanks,
Lydia Zhang

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors