Forum Discussion
ValeriaBreve
3 years agoPost Partisan
transform a column type based on column name
Hello, I need to change the column type of my table based on a text they contain. So I have my list with all the columns that should be converted to the type Currency.Type: filter_type_names ...
- 3 years ago
Hi Valeria,
does this work?
FinalTransformedColumns = Table.TransformColumnTypes( #"Removed Columns", List.Transform( filter_type_names, each {_,Currency.Type}))
Jakinta
3 years agoSolution Sage
Hi Valeria,
does this work?
FinalTransformedColumns = Table.TransformColumnTypes( #"Removed Columns", List.Transform( filter_type_names, each {_,Currency.Type}))ValeriaBreve
3 years agoPost Partisan
Jakinta yes it does! Thank you so much! I had tried a List.Zip with "Currency.Type" as second argument for every column, but powerBI would not accept it not recognizing the text input "Currency.Type" as a type.
Thanks again!