Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Split text string

Hi,   I need to split my data in the format below. Remove data after dash but since the data format is different in all rows, search function isn't working. Can someone help please.    Thanks.  ...
  • Thim's avatar
    Thim
    7 years ago

    If you want to keep your original Coloumn you can also use this Dax formula.

    After = IFERROR(
        MID(Table1[Before];1;SEARCH("-";Table1[Before])-1);
        Table1[Before])

     

     

     

    have a great weekend. :-)