Forum Discussion
Anonymous
3 years agoNot applicable
How to identify a text format in power query
I have an excel like below. I need to identify a text format (for my case XXX-XX-XX, example 122-22-10). And then I will take that cells including the upper cells. In the full query, how I can do th...
wdx223_Daniel
3 years agoCommunity Champion
NewStep=let fx=(t)=>let a=Text.Split(Text.From(t)??"","-") in List.Count(a)=3 and List.AllTrue(List.Transform(a,each _<>"" and Text.Remove(_,{"0".."9"})="")) in Table.FromColumns(List.Zip(List.Accumulate(Table.ToRows(PreviousStepName),{{},{}},(x,y)=>{x{0}&List.Zip(List.Select(List.Zip({x{1},y}),each fx(_{1}))),y}){0}))