Forum Discussion
Turning alternate rows into columns - Power Query/M Function
- Dec 29, 2021
davidmaddock54 The attached workbook contains a working query that does what you asked for. I trust you can get it to work in your own schedule.
It involves adding an Index column from zero. Then a Modulo of 2 on the Index, creating a column with alternating zeroes and ones. Pivot the Modulo column without aggregation of Column1 and do some cleaning up.
davidmaddock54 The attached workbook contains a working query that does what you asked for. I trust you can get it to work in your own schedule.
It involves adding an Index column from zero. Then a Modulo of 2 on the Index, creating a column with alternating zeroes and ones. Pivot the Modulo column without aggregation of Column1 and do some cleaning up.
Thanks again.
- davidmaddock54Dec 29, 2021Brass ContributorAnd it works. Set up now.
- Riny_van_EekelenDec 29, 2021Platinum Contributor
davidmaddock54 Glad you could work it out!