Forum Discussion

AJAyr's avatar
AJAyr
New Member
3 years ago

extract 6-7 digit code from a column into a new column

Hi all,
I am needing help to extract 6-7 alphanumeric digit code from a column where there are multiple codes in a row without any specific  format.I need to create new column for the extracted code.Would you be able to help me.

Thanks in advance

4 Replies

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

    Hi AJAyr 

    You could use this Dax .

    Column =Left(Column Name , 7)
    If you want left side first 7 digits you should use Left Function.
    Column = Right (Column Name , 7)
    If you want Right  side first 7 digits you should use Right Function.

    Thanks,
    Thennarasu

    • AJAyr's avatar
      AJAyr
      New Member

      Thank you. But, I need to extract 4 different 7 digit unique codes to a new column

       

      • Uzi2019's avatar
        Uzi2019
        Icon for Community Champion rankCommunity Champion

        Hi AJAyr 
        Can you share the data sample with required output? We'll get better understanding by looking at input and output