Forum Discussion
sidyahmed_pbix
4 years agoFrequent Visitor
Change type of multiple columns
Hi there, I need to change the type of some columns in my table below (all columns endswith z_matches) . How can i do in power query to change the type from boolean to text.
- 4 years ago
Insert this step where #"Changed Type" will need to be replaced with your previous step
= Table.TransformColumnTypes(#"Changed Type",List.Transform(List.Select(Table.ColumnNames(#"Changed Type"), each Text.EndsWith(_,"z_matches")),each {_, type text}))
Vijay_A_Verma
4 years agoMost Valuable Professional
Insert this step where #"Changed Type" will need to be replaced with your previous step
= Table.TransformColumnTypes(#"Changed Type",List.Transform(List.Select(Table.ColumnNames(#"Changed Type"), each Text.EndsWith(_,"z_matches")),each {_, type text}))