Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello !
Does anybody have any idea how to twist the dataset like below?
The number of columns in the input is dynamic.
= let items={{"1","red"},{"2","green"},{"3","blue"},{"4","yellow"}},pos=List.Positions(items) in #table(2,List.Transform({1..Number.Power(2,List.Count(items))-1},each List.Accumulate(pos,{null,null},(x,y)=>let a=Number.BitwiseAnd(Number.BitwiseShiftRight(_,y),1) in List.Transform(List.Zip({List.ReplaceValue(x,"",null,Replacer.ReplaceValue),{{null,null},items{y}}{a}}),each Text.Combine(_,"-")))))
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.