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
uint
New Member

InferSheetDimensions for xls files

I currently have an issue with a query returning only the first two rows and one column of data from a report. Due to the way the data is structured PQ is assuming any blank cell spacing is the end of the data. Is there a way to get excel.workbook to return the entire sheet for an xls file, where the infersheetdimensions option is not available?

 

Current state of extracting data from binary:

#"Worksheet" = Excel.Workbook(AttachmentContent, false, true){0}[Data]

 

I'm attempting to accomplish this entirely within PQ.

 

Thank you for the help!

1 REPLY 1
Syndicate_Admin
Administrator
Administrator

Instead of {0}  use a filter that identifies the sheet.  Then navigate in the sheet (remove top rows, remove columns etc) until you hit the data range.

 

Note: .xls is a Very Bad source format and not supported in the Power BI service.

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.

Top Solution Authors