We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
I've read related posts and one solution that worked was going into the source sheets, saving them, closing and refreshing the query. Ideally I don't want to have to do this step every time.
let
Source = Excel.Workbook(File.Contents("Path"), null, true),
Status_Sheet = Source{[Item="Status",Kind="Sheet"]}[Data],
#"Promoted Headers" = Table.PromoteHeaders(Status_Sheet, [PromoteAllScalars=true]),
#"Changed Type" = Table.TransformColumnTypes(#"Promoted Headers",{{"E-mail Subject", type text}, {"Contractor", type text}, {"Transaction Start", type any}, {"Transaction End", type any}})
in
#"Changed Type"
I'm expecting the following, however only the first row is returning
| E-mail Subject | Contractor | Transaction Start | Transaction End |
| Email 123 | Contractor Name 123 |
| |
| Email 123 | Contractor Name 123 |
|
Going to the source step, when looking into the table, only one row shows. So not entirely sure what the issue is.
Solved! Go to Solution.
Hi @Iamzuup
Just a hunch, but it's possible that some worksheets within the Excel files have incorrect "dimensions" specified in their metadata. This can happen when the files are generated by a 3rd-party tool (for example).
A possible fix is to change the Source step to:
Source = Excel.Workbook( File.Contents("Path"), [DelayTypes = true, InferSheetDimensions = true ] ),
The InferSheetDimensions field in the record specifies that sheet dimensions should be based on the data present in the sheet, not the metadata.
The DelayTypes field is not related to your specific issue, but specifies that columns are left untyped (since the types are changed in a later step).
Does this help? If not, it must be something else.
Read more on this here:
https://learn.microsoft.com/en-us/power-query/connectors/excel#missing-or-incomplete-excel-data
Hey, worked like a charm, I appreciate it!
Is there a way to implement this into a folder.files activity?
Hi @Iamzuup
Just a hunch, but it's possible that some worksheets within the Excel files have incorrect "dimensions" specified in their metadata. This can happen when the files are generated by a 3rd-party tool (for example).
A possible fix is to change the Source step to:
Source = Excel.Workbook( File.Contents("Path"), [DelayTypes = true, InferSheetDimensions = true ] ),
The InferSheetDimensions field in the record specifies that sheet dimensions should be based on the data present in the sheet, not the metadata.
The DelayTypes field is not related to your specific issue, but specifies that columns are left untyped (since the types are changed in a later step).
Does this help? If not, it must be something else.
Read more on this here:
https://learn.microsoft.com/en-us/power-query/connectors/excel#missing-or-incomplete-excel-data
Hey, worked like a charm, I appreciate it!
Is there a way to implement this into a folder.files activity?
Glad to hear it 🙂
Yes, as long as you make the above change wherever Excel.Workbook is called, it should apply to every file within the folder.
This is likely within a "Transform Sample File" query if you have used the Power Query interface to combine the files.
Could you give more detail on the overall setup of your queries?
Again, thanks so much for your time and help, updating this at the transform sample file fixed the issue.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 6 | |
| 4 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 11 | |
| 10 | |
| 7 | |
| 7 | |
| 6 |