Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowTry your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now
My project sends a daily file, which goes through a Power Automate process and saved to my departments SharePoint site. The Excel worksheet name of the file changes based on who sent the email. The file name, data, structure, etc... are identical, except for the worksheet name. Different worksheet tab names cause errors in the power bi - power query process.
My question: Is there a way to edit my query to account for different worksheet names dyanmically without manual intervention everytime it changes?
Is there a way to update the Excel Tab to Sheet1 if named something else in Power Query?
The normal comes as "Sheet1" and everything else is a variation of "28 DAY FORECAST." The variations include different spacing, or underscores.
= (Parameter1 as binary) => let
Source = Excel.Workbook(Parameter1, null, true),
Sheet1_Sheet = Source{[Item="Sheet1",Kind="Sheet"]}[Data], // Item="Can change in automated process"
#"Promoted Headers" = Table.PromoteHeaders(Sheet1_Sheet, [PromoteAllScalars=true])
in
#"Promoted Headers"
Solved! Go to Solution.
@Anonymous if that Sheet is the only object in your files then simply remove Item name selection
Sheet1_Sheet = Source{[Kind="Sheet"]}[Data]
@Anonymous if that Sheet is the only object in your files then simply remove Item name selection
Sheet1_Sheet = Source{[Kind="Sheet"]}[Data]
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 11 | |
| 8 | |
| 5 | |
| 5 | |
| 5 |