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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Stacking Multiple Columns in New Table

Hi! 
I'm kinda of new to PBI and DAX and have been trying to resolve a problem for a few days now, without result. 
I want to create a new Table where i'll stack multiple columns "on top" of eachother. Let me illustrate. 
What i got:

JensE_0-1644395674076.png


What i want:

JensE_1-1644395713570.png

 

I tried using SELECTCOLUMNS and UNION - but I fear that I lack enough knowledge to proceed any furhter. 
Do you have any soulutions i could try?

Thank you!

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , Unpivot in power query - other than date

Split by delimiter into column by _ . for the first column -> that will give, question, answer and comment in more column and number in another column

pivot again using column having question, answer and comment and value

 

https://radacad.com/pivot-and-unpivot-with-power-bi

 

If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , Unpivot in power query - other than date

Split by delimiter into column by _ . for the first column -> that will give, question, answer and comment in more column and number in another column

pivot again using column having question, answer and comment and value

 

https://radacad.com/pivot-and-unpivot-with-power-bi

 

If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Fantastic - With your help I think i can solve the rest! 
Thank you @amitchandak ! 🙂 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors