Forum Discussion

Kallagan's avatar
Kallagan
Frequent Visitor
8 years ago
Solved

Pattern matching

Hello   I need your help. I'm having a problem with the pattern matching, or it's my formula, (I'm sure it's my formula)     I have 4 Excel sheets, 1 for each factory, that contains tickets extr...
  • Kallagan's avatar
    Kallagan
    8 years ago

     

    Hello

     

    I've tried with both formula, I've got an error like cannot tranform 1 in a Type value.

     

    But I've managed to solve my problem with the formula bellow:

     

     Relative = Table.AddColumn(#"Changed Type1", "Support", 
                (Earlier) => Table.FirstN(
                    Table.SelectRows(TabKeys, each Text.Contains(Earlier[Subject],[Pattern], Comparer.OrdinalIgnoreCase))
                    ,1)
               ),
        ExpTab = Table.ExpandTableColumn(Relative, "Support", {"Support"}, {"Support.Center"})

     

    Thank you anyway for your help.