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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Can I automatically change the Excel sheet name on Power Query?

Hello all,

 

I'm receiving weekly reports in Excel format from a client, and I set up a Power Automate flow that copies the attachment to a SharePoint Library, after renaming it.  My dashboard then pulls this data, and we are all happy. However, I noticed today that because the sheet is named differently every week, Power BI fails in the navigation step. I can rename the Excel workbook on Power Automate, but I cannot rename the sheet. I am curious whether I can do that on Power Query instead. See below, screenshots that show the applied steps and what happens in the navigation step. What I want to do is to change Source to something generic like "Sheet1". Is that possible?

 

Thank you,

 

 

thatakke_1-1650093760998.png

 

 

thatakke_0-1650093733748.png

 

1 ACCEPTED SOLUTION
serpiva64
Solution Sage
Solution Sage

Hi,

if you have only 1 sheet in  your workbook you can try deleting the navigation step and then expand Data column

Otherwise you can also try to modify the navigation step 

= Source{[Item="Sheet1",Kind="Sheet"]}[Data]

to a generic one:

= Source{0}[Data]

If this post is useful to help you to solve your issue consider giving the post a thumbs up 

 and accepting it as a solution !

View solution in original post

3 REPLIES 3
serpiva64
Solution Sage
Solution Sage

Hi,

if you have only 1 sheet in  your workbook you can try deleting the navigation step and then expand Data column

Otherwise you can also try to modify the navigation step 

= Source{[Item="Sheet1",Kind="Sheet"]}[Data]

to a generic one:

= Source{0}[Data]

If this post is useful to help you to solve your issue consider giving the post a thumbs up 

 and accepting it as a solution !

Anonymous
Not applicable

This was just what I was looking for regarding an issue I had with dynamic worksheet names!

Anonymous
Not applicable

Thanks, @serpiva64 

Your suggestion to change it to a generic one is ingenious and, of course, it worked! 

 

Thank you,

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.