Forum Discussion
davidz106
Helper III
4 years agoRemove all columns after certain value
I want to remove all columns after the column that is named "Q3". How should I write this in M? The number of columns before Q3 is dynamic. Regrads, Dave
- 4 years ago
Insert following statement where you can replace Source with previous step
= Table.RemoveColumns(Source,List.RemoveRange(Table.ColumnNames(Source),0,List.PositionOf(Table.ColumnNames(Source),"Q3")+1))
Vijay_A_Verma
Most Valuable Professional
4 years agoInsert following statement where you can replace Source with previous step
= Table.RemoveColumns(Source,List.RemoveRange(Table.ColumnNames(Source),0,List.PositionOf(Table.ColumnNames(Source),"Q3")+1))- davidz1064 years ago
Helper III
Works lika a charm! Thank you!