Forum Discussion
tgjones43
Helper IV
7 years agoCount 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...
- 7 years ago
In that case
=List.Count( List.Select( Text.Split( Text.Combine( List.Transform(Record.ToList(_),each Text.From(_)) ,",") , "," ),each _ ="CL") )
EugenioJunior
7 years agoFrequent Visitor
- tgjones437 years ago
Helper IV
Hi EugenioJunior, yes I could do that. So in the example, [Spot 10] is transformed into two columns; [Spot 10.1] and [Spot 10.2]
- EugenioJunior7 years agoFrequent Visitor
So it worked?
- Zubair_Muhammad7 years ago
Community Champion
Just another way could be yo use this Custom Column
For example for CL
=List.Count( List.Select( Text.Split( Text.Combine(Record.ToList(_),","), "," ),each _ ="CL"))