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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

_xlnm._FilterDatabase

I am receiving this error across three sheet names from an excel document in Power Query Editor. This dashboard is now not presenting the data and power query editor is unable read the sheet names? Can anyone help me with this?

1 ACCEPTED SOLUTION
v-yanjiang-msft
Community Support
Community Support

Hi @Anonymous ,

Based on my web search, it seems that you might have encountered a step-level error caused by a change in the sheet name of your data source. One possible solution is to modify the Transform File function in your query with a try statement that can handle different sheet names. For example:

let Source = Excel.Workbook (Parameter1, null, true), Sheet1_Sheet = try Source { [Item=“Sheet1”,Kind=“Sheet”]} [Data] otherwise Source { [Item=“Sheet2”,Kind=“Sheet”]} [Data], #“Promoted Headers” = Table.PromoteHeaders (Sheet1_Sheet, [PromoteAllScalars=true]) in #“Promoted Headers”

You can replace Sheet1 and Sheet2 with the appropriate names for your data source. You can find the Transform File function on the left side of the Power Query Editor window. For more information on how to deal with errors in Power Query, you can check out this article: Dealing with errors - Power Query | Microsoft Learn

 

Best regards,

Community Support Team_yanjiang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-yanjiang-msft
Community Support
Community Support

Hi @Anonymous ,

Based on my web search, it seems that you might have encountered a step-level error caused by a change in the sheet name of your data source. One possible solution is to modify the Transform File function in your query with a try statement that can handle different sheet names. For example:

let Source = Excel.Workbook (Parameter1, null, true), Sheet1_Sheet = try Source { [Item=“Sheet1”,Kind=“Sheet”]} [Data] otherwise Source { [Item=“Sheet2”,Kind=“Sheet”]} [Data], #“Promoted Headers” = Table.PromoteHeaders (Sheet1_Sheet, [PromoteAllScalars=true]) in #“Promoted Headers”

You can replace Sheet1 and Sheet2 with the appropriate names for your data source. You can find the Transform File function on the left side of the Power Query Editor window. For more information on how to deal with errors in Power Query, you can check out this article: Dealing with errors - Power Query | Microsoft Learn

 

Best regards,

Community Support Team_yanjiang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors