Forum Discussion
Power Query conversion from single columns to multiple columns based on rowname index
- 7 years ago
hi,@kvbe
After my research, you can do these follow my steps as below:
Basic data
Step1:
Select column A and duplicate this column
and then select the duplicate column replace value
Step2:
duplicate the table
Step3:
Merge basic table with duplicate table
And then expand the table
Step4:
Add a conditional column
Step5:
filter custom column is 2
Step6:
Add the index column
Step7:
select Index column ,click Add Column->Standard->Modulo
Step8
filter column Modulo is 0
Step9:
select Column A and replace the value
Step10:
Remove unnecessary column and rename the column
Result:
here is demo, please try it.
Best Regards,
Lin
hi,@kvbe
After my research, you can do these follow my steps as below:
Basic data
Step1:
Select column A and duplicate this column
and then select the duplicate column replace value
Step2:
duplicate the table
Step3:
Merge basic table with duplicate table
And then expand the table
Step4:
Add a conditional column
Step5:
filter custom column is 2
Step6:
Add the index column
Step7:
select Index column ,click Add Column->Standard->Modulo
Step8
filter column Modulo is 0
Step9:
select Column A and replace the value
Step10:
Remove unnecessary column and rename the column
Result:
here is demo, please try it.
Best Regards,
Lin
Hi Lin,
Thank you very much thats a neat way of approaching this!
Never thought about the merging + index + modulo approach.
Another type of technique I can add to my power query toolbox.