Forum Discussion
Merleau
Helper II
1 year agoConverting list elements based on their lengths
Hello, One column in my table is a list of strings. I would like to change the strings to lower case if their lenghts is greater than 1. Name Types N1 A,ABC,B,CDF,DF N2 H,JK...
- 1 year ago
Here is one way to do this...
= Table.TransformColumns(previousQueryStep, {{"Types", each Text.Combine(List.Transform(Text.Split(_, ","), each if Text.Length(_) > 1 then Text.Lower(_) else _), ","), type text}})Using your example table you end up with...
jgeddes
Super User
1 year agoHere is one way to do this...
= Table.TransformColumns(previousQueryStep, {{"Types", each Text.Combine(List.Transform(Text.Split(_, ","), each if Text.Length(_) > 1 then Text.Lower(_) else _), ","), type text}})
Using your example table you end up with...