Forum Discussion

klikk680's avatar
klikk680
Frequent Visitor
6 years ago
Solved

How to complete a field to get a fixed length with Power Query / M language

Hi, I have this text column in my table Label1 (txt) 12345678 NJGTWS21Q99Y651S and I want a new column like this: copy Label1 (txt) 0000000012345678 NJGTFS21P99Y651S in e...
  • klikk680's avatar
    klikk680
    6 years ago

    Thanks Anonymous I tried your suggestion with Text.PadStart function like this:

     

    Text.PadStart([Label1 (txt)],16,"0") and it works fine!

     

    Grazie 1000!