Forum Discussion
Anonymous
7 years agoNot applicable
Select all columns starting with
Hi, I want to select all the columns starting with a certain name. In this case: alarm. There are 200 columns starting with this -> alarm[001], alarm[002] etc. I now have: Select * FROM ta...
- Anonymous7 years ago
Hey,
You can use the following Power M code to filter by rows beginning with "alarm".
#"Filtered Rows" = Table.SelectRows(Source, each Text.StartsWith([ColumnName], "alarm"))
Kind regards,
Alex
- 7 years ago
Anonymous
I created a small illustrative example
Please see attached file's query editor for steps
First determine the Columns to Select using
=List.Select(Table.ColumnNames(#"Changed Type"),each Text.Contains(_,"alarm"))
Then we can use
= Table.SelectColumns(#"Changed Type",ColumnsToSelect)
Zubair_Muhammad
7 years agoCommunity Champion
Anonymous
I created a small illustrative example
Please see attached file's query editor for steps
First determine the Columns to Select using
=List.Select(Table.ColumnNames(#"Changed Type"),each Text.Contains(_,"alarm"))
Then we can use
= Table.SelectColumns(#"Changed Type",ColumnsToSelect)