r/ExcelPowerQuery • • Aug 13 '25

Specific data from rows to columns

Hi,

I have this big file loaded into Power query. It's item related.

There are mostly a few rows for each item as you can see on the print screen under 'CURRENT'

My goal is to change this in power query [since it's already loaded in PQ to perform other additional changes] to achieve the layout as displayed under 'DESIRED'.

Additional info,

-Same Item can have one or more rows [mostly <6]

-COL2 can be empty

-Only the COL2 with values are wanted in it's own column. But that's not mandatory, empty column from empty field is also okay

If it helps to achieve this, I may create Nth columns on forehand to be filled with the COL2 value, that's no problem.

Any idea or advice that may help me to achieve this?

3 Upvotes

5 comments sorted by

View all comments

Show parent comment

2

u/declutterdata Aug 15 '25

Hi u/r10m12 ,

Sorry it took so much of your time.

you don't have to feel sorry. If I don't want to take my time to solve it, I wouldn't. It is completely my choice.

I load the data from a external excel workbook, would it be easy to replace the source details by the code that is usually used when done so?

Sure! I duplicated your table in the first step in PQ itself. It doesn't matter where the data comes from. Manually like this, from a table in the file, from another file, ...
It just has to be this kind of table. 🙂

Best regards,
Phillip | DeclutterData 🙋🏻‍♂️

2

u/TheBusterHymenOpen Nov 04 '25

Thank you two for the civil conversation, we can use a lot more these days.