wsnyder
Board Regular
- Joined
- Sep 23, 2018
- Messages
- 224
- Office Version
- 365
- Platform
- Windows
Hi all,
My Power Query breaks when I update to a new file and the new file does not contain a Column Name that is hard-coded in the Query from the original file used to create the Query.
I promoted the headers and noticed that many columns had the incorrect DataType (ABC|123) so I went through each column and updated the DataType.
There are 63 Columns in total (before UnPivot Step)
Of 63 Columns, 60 are Decimal Number, and 3 are Text
The 60 Columns follow this naming convention: Scenario_MonthName_Year: BGT_Jan_2023
Scenario prefixes: BGT, ACT, EST
How can I get the correct Data Type on the respective Columns without referring to the Columns by name so my query does not break in future iterations when various columns are added or deleted?
Thanks,
-w
My Power Query breaks when I update to a new file and the new file does not contain a Column Name that is hard-coded in the Query from the original file used to create the Query.
I promoted the headers and noticed that many columns had the incorrect DataType (ABC|123) so I went through each column and updated the DataType.
There are 63 Columns in total (before UnPivot Step)
Of 63 Columns, 60 are Decimal Number, and 3 are Text
The 60 Columns follow this naming convention: Scenario_MonthName_Year: BGT_Jan_2023
Scenario prefixes: BGT, ACT, EST
How can I get the correct Data Type on the respective Columns without referring to the Columns by name so my query does not break in future iterations when various columns are added or deleted?
Thanks,
-w