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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
NBADM
New Member

Combine columns by stacking on new table

Hello,

 

Is it possible to stack multiple columns from one table into a single column on a new table and then add a new column to filter off of?  I'm sorry that is not clear here is an example of what I'm trying to do:

Take this

Satisfied with JoeSatisfied with JaneSatisfied with Jerry
331
432

 

and turn it into this

SatisfiedName
3Joe
4Joe
3Jane
3Jane
1Jerry
2Jerry

 

Thanks

1 ACCEPTED SOLUTION
Syk
Super User
Super User

Select your columns and then Unpivot Columns (under Transform tab).

Syk_0-1733234325934.png

Should be left with this

Syk_1-1733234346693.png



And you can split the columns to get the names!

View solution in original post

2 REPLIES 2
DataNinja777
Super User
Super User

Hi @NBADM ,

 

You can achive this using Unpivot Columns.

To achieve this transformation in Power BI, start by loading your data into the Power Query Editor. Once in the editor, select the columns "Satisfied with Joe," "Satisfied with Jane," and "Satisfied with Jerry." Then, use the "Unpivot Columns" option, which can be accessed by right-clicking on the selected columns. This will transform the selected columns into rows, creating a table with two columns: one containing the original column headers and the other containing the corresponding values.

 

After unpivoting, rename the first column (which holds the original headers) to "Name" and the second column to "Satisfied." To clean up the "Name" column so it only contains the names (e.g., "Joe," "Jane," "Jerry"), use the "Transform" tab, selecting "Extract" and then "Text After Delimiter." Specify "with " as the delimiter to remove the "Satisfied with" prefix from each value.

 

Finally, close and apply the changes to load the transformed table back into Power BI. The resulting table will have two columns: "Satisfied" and "Name." It will now be in the desired format, making it easy to filter or use in visuals for analysis.

 

Best regards,

Syk
Super User
Super User

Select your columns and then Unpivot Columns (under Transform tab).

Syk_0-1733234325934.png

Should be left with this

Syk_1-1733234346693.png



And you can split the columns to get the names!

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors