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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
ncroston
New Member

Select Excel Worksheet from Datalake Binary Excel File

Hello,

 

I am a Power Bi newbie taking over tasks for someone that left where I work. I have been able to follow along and get around in Power Bi somewhat, but there is one important thing that I cannot determine.

 

We store Excel files in Azure Data Lake. The files are loaded into Power Bi as binary files. Each Excel workbook has 14 worksheets.

 

Our query always selects the same worksheet out of 14 but I cannot figure out why the one is selected rather than others. If I want to change the selected worksheet, I do not see where to specify. Our code is as follows.

 

 

let
Source = DataLake.Contents("<source_location>", [PageSize=null]),
#"Filtered Hidden Files1" = Table.SelectRows(Source, each [Attributes]?[Hidden]? <> true),
#"Invoke Custom Function1" = Table.AddColumn(#"Filtered Hidden Files1", "Transform File", each #"Transform File"([Content])),
#"Removed Other Columns1" = Table.SelectColumns(#"Invoke Custom Function1",{"Name", "Transform File"}),
#"Expanded Transform File" = Table.ExpandTableColumn(#"Removed Other Columns1", "Transform File", {"Column1", "Column2", "Column3", "Column4", "Column5", "Column6", "Column7"}, {"Transform File.Column1", "Transform File.Column2", "Transform File.Column3", "Transform File.Column4", "Transform File.Column5", "Transform File.Column6", "Transform File.Column7"}),
#"Promoted Headers" = Table.PromoteHeaders(#"Expanded Transform File", [PromoteAllScalars=true]),
#"Filtered Rows" = Table.SelectRows(#"Promoted Headers", each ([Date] <> "Date")),
#"Renamed Columns" = Table.RenameColumns(#"Filtered Rows",{{"Seasonal Forecast", "Seasonal Monthly Forecast"}}),
#"Removed Columns" = Table.RemoveColumns(#"Renamed Columns",{"Total Non-Aeronautical Revenue"})
in
#"Removed Columns"

 

 

Any guidance is greatly appreciated.

2 REPLIES 2
ncroston
New Member

Thank you @V-lianl-msft. This is a good read, but it doesn't quite answer the issue that I am experiencing.

 

Each of my spreadsheets have multiple worksheets. I cannot determine how the connection to each spreadsheet determines which worksheet is active.

 

Would you happen to know how that is determined?

V-lianl-msft
Community Support
Community Support

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.