Forum Discussion
PBI - all data loaded are null
- Anonymous3 years ago
Thank Greg for very helpful. I tried, but still can not fix the issue.
I loaded the PBI from the begining and re-build the dashboard. All are good.
Anyway, thanks for your help, as always.
Anonymous It seems like you have extra steps in your Folder query that probably shouldn't be there. Any transformations that you want to add to importing the files should go in your Transform Sample File query, not the Folder query. So, your Folder query should always be something like:
let
Source = Folder.Files("C:\Users\gdeck\OneDrive\Documents\Folder"),
#"Filtered Hidden Files1" = Table.SelectRows(Source, each [Attributes]?[Hidden]? <> true),
#"Invoke Custom Function1" = Table.AddColumn(#"Filtered Hidden Files1", "Transform File", each #"Transform File"([Content])),
#"Renamed Columns1" = Table.RenameColumns(#"Invoke Custom Function1", {"Name", "Source.Name"}),
#"Removed Other Columns1" = Table.SelectColumns(#"Renamed Columns1", {"Source.Name", "Transform File"}),
#"Expanded Table Column1" = Table.ExpandTableColumn(#"Removed Other Columns1", "Transform File", Table.ColumnNames(#"Transform File"(#"Sample File"))),
#"Changed Type" = Table.TransformColumnTypes(#"Expanded Table Column1",{{"Source.Name", type text}, {"One", Int64.Type}, {"Two", Int64.Type}, {"Three", Int64.Type}})
in
#"Changed Type"
These two steps seem to not belong:
#"Promoted Headers" = Table.PromoteHeaders(#"Expanded Table Column1", [PromoteAllScalars=true]),
#"Renamed Columns" = Table.RenameColumns(#"Promoted Headers",{{"Speaker data 2021.xlsx", "Source.Name"}}),Greg_Deckler I have deleted the 02 extra steps as per your suggestion, but another error come up. Can you advise how to fix?
- Greg_Deckler3 years agoCommunity Champion
Anonymous Remove the comma at the end of the line just above your "in" statement.
- Anonymous3 years agoNot applicable
- Greg_Deckler3 years agoCommunity Champion
Anonymous Or add a comma at the end? Paste in everything from the Advanced Editor and I can try to sort through it.