Forum Discussion

tgjones43's avatar
tgjones43
Icon for Helper IV rankHelper IV
7 years ago
Solved

Count text values across multiple columns for each row

Hello all, I have searched the forum for a solution to this but haven't managed to find what I need.   I have the following dataset and need to count the occurrences of each two letter code in colu...
  • Zubair_Muhammad's avatar
    Zubair_Muhammad
    7 years ago

    tgjones43 

     

    In that case

     

    =List.Count(
                     List.Select(
      Text.Split(
    Text.Combine(
    List.Transform(Record.ToList(_),each Text.From(_))
            ,",")
    ,
    ","
                    ),each _ ="CL")
    )