Forum Discussion

AlexLiang's avatar
AlexLiang
Frequent Visitor
8 years ago
Solved

retrieve text/string from cells in excel

Hi everyone,   Thanks for your attention. I would like to retrieve several information to made counts of a certain information as for ETL. My question is that how can I write the DAX script to extr...
  • v-chuncz-msft's avatar
    8 years ago

    AlexLiang,

     

    You may add a calculated column as follows.

    Column =
    VAR s1 = "3. Defect type:"
    VAR s2 = "4. Initiator:"
    VAR p1 =
        SEARCH ( s1, Table1[Abnormal Description] )
    VAR p2 =
        SEARCH ( s2, Table1[Abnormal Description], p1 )
    RETURN
        MID ( Table1[Abnormal Description], p1 + LEN ( s1 ), p2 - p1 - LEN ( s1 ) )