JackDanIce
Well-known Member
- Joined
- Feb 3, 2010
- Messages
- 9,922
- Office Version
- 365
- Platform
- Windows
Hi,
Is there a way to use Table.TransformColumnTypes where instead of listing each column field value, I can have the first 11 columns as type text and the remaining columns as type number?
Below errors
Is there a way to use Table.TransformColumnTypes where instead of listing each column field value, I can have the first 11 columns as type text and the remaining columns as type number?
Below errors
Power Query:
let
Source = Table.Transpose(Excel.CurrentWorkbook(){[Name="Output_Column_Fields"]}[Content]),
promote_headers = Table.PromoteHeaders(Source, [PromoteAllScalars=true]),
col_names = Table.ColumnNames(promote_headers),
first_11 = List.FirstN(col_names, 11),
remainder = List.RemoveFirstN(col_names, 11),
change_type = Table.TransformColumnTypes(promote_headers,List.Combine({first_11, remainder})),