Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
Anonymous
Not applicable

Please Help with simple transformation.. I forgot what this is called

Hey all,

 

My client had a spreadsheet with Column A = department and column B = process name.. In column C, D, E, if that process (column B) had additional sub processes, they would be listing horizontally, next to its respective process name.

What I want to do is ONLY have column A and B, but everything in C, D, E I want to be bunched in with column B.

 

So if a process (column B) = “Accounts payable” & in Column A it says it belongs to finance, I want anything that’s next to “Accounts payable” (column c, d, and e) to be placed in column B marked as “Finance” for department, as if they’re all related and bunched together.

 

I know there’s an easy way to do this in the query editor / PQ. Can someone please connect the dots for me here? Or at least give me the word I need?

 

Seems like along the lines of pivot/unpivot/transpose family of transformation..

 

Sorry for this poorly explained request - If anyone can help, please reach out.

1 ACCEPTED SOLUTION
V-pazhen-msft
Community Support
Community Support

@Anonymous 
You can just selected the columns =>right click =>select merge columns = change the column name to Finance.

Vpazhenmsft_0-1635817806732.png

 

Vpazhenmsft_1-1635817871751.png

 

 

Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
V-pazhen-msft
Community Support
Community Support

@Anonymous 
You can just selected the columns =>right click =>select merge columns = change the column name to Finance.

Vpazhenmsft_0-1635817806732.png

 

Vpazhenmsft_1-1635817871751.png

 

 

Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.

ponnusamy
Solution Supplier
Solution Supplier
HotChilli
Super User
Super User

Are you trying to unpivot the other columns apart from the first two?

Some sample data and desired output would help.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors