Forum Discussion

benqpbi's avatar
benqpbi
Icon for Helper I rankHelper I
3 years ago
Solved

How to add value in column which is not consistent

I have a column named task name which is incosistent but i want to add zero before my 1,2 and so on... how do i add in power query/ m-code so it is future proof

 

7 Replies

  • Jayee's avatar
    Jayee
    Icon for Responsive Resident rankResponsive Resident

    Hi benqpbi 

     

    Use Column from examples transformation in power query and provide some examples in the column highlited then power query will write M code automatically.

     

    I can able to sort with the data you have provided

     

     

    Here the link for same file

     

    If this post helps, then please consider Accept it as the solution, Appreciate your Kudos!!

  • benqpbi 

    what's the expected output?

    _PRODUCT_gg_SEQ01 or 01?

    What if for those numbers are two digits, do you still want to add 0?