Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I want to re-organize the data as below. Every 2 rows will be transposed and all data need to convert into 02 columns.
Solved! Go to Solution.
NewStep=#table(2,List.TransformMany(Table.Split(PreviousStepName,2),each Table.ToColumns(_),(x,y)=>y))
if you use the source as your another post, just use this code to get result in one step
=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(2,List.Accumulate(Table.ToRows(PreviousStepName),{{},{}},(x,y)=>{x{0}&List.Select(List.Zip({x{1},y}),each fx(_{1})),y}){0})
Both were Tried and this is also working. Thanks, Brother. You are a real super user.
NewStep=#table(2,List.TransformMany(Table.Split(PreviousStepName,2),each Table.ToColumns(_),(x,y)=>y))
if you use the source as your another post, just use this code to get result in one step
=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(2,List.Accumulate(Table.ToRows(PreviousStepName),{{},{}},(x,y)=>{x{0}&List.Select(List.Zip({x{1},y}),each fx(_{1})),y}){0})
User | Count |
---|---|
11 | |
8 | |
5 | |
5 | |
4 |
User | Count |
---|---|
16 | |
14 | |
8 | |
6 | |
6 |