Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

How would I filter out text columns that do not start with a number?

I'm trying to filter rows using power query editor. Any suggestions?

  • If you want to show text column that do not start with a number

    = Table.SelectRows(Source, each Text.Length(Text.Select(Text.Start([Data],1),{"0".."9"}))<>1)

    If you want to show text column that start with a number

    = Table.SelectRows(Source, each Text.Length(Text.Select(Text.Start([Data],1),{"0".."9"}))=1)

1 Reply

  • Vijay_A_Verma's avatar
    Vijay_A_Verma
    Icon for Most Valuable Professional rankMost Valuable Professional

    If you want to show text column that do not start with a number

    = Table.SelectRows(Source, each Text.Length(Text.Select(Text.Start([Data],1),{"0".."9"}))<>1)

    If you want to show text column that start with a number

    = Table.SelectRows(Source, each Text.Length(Text.Select(Text.Start([Data],1),{"0".."9"}))=1)