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

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

Reply
anthony44
New Member

Transform Data : multiple columns -> one dimension

Hi,

 

I have a table with different columns

 

Person / Area 1 / Area2 / Area3

 

An example could be the following :

 

Robert / France / UK / France

Jane  / Belgium / empty / empty

 

In order to analyze the survey with area dimension, I have to transform the initial table to :

 

Index / Person / Area

 

with my example,

 

0 / Robert / France

1 / Robert / UK

2 / Robert / France

3 / Jane / Belgium

 

Index could be important to be sure that I can observe two answers from Robert where area is France.

 

I hope that someone will be able to help me to realize this transformation to obtain this result.

 

 

 

 

 

1 ACCEPTED SOLUTION
fhill
Resident Rockstar
Resident Rockstar

Hope this helps...  All of these screen shots come from the Query Editor in Power BI

 

Your original data:

Capture.PNG

 

Select the 3 Area Columns and choose 'Unpivot Columns' from the Transform tab

Capture2.PNG

 

Now under 'Add Column' - Add an Index Column (from either 0 or 1 depending on your neeeds.)

Capture3.PNG

 

Here you go!

Capture4.PNG




Did I answer your question, or help you along the way?
Please give Kudos or Mark as a Solution!


https://www.linkedin.com/in/forrest-hill-04480730/

Proud to give back to the community!
Thank You!




View solution in original post

2 REPLIES 2
fhill
Resident Rockstar
Resident Rockstar

Hope this helps...  All of these screen shots come from the Query Editor in Power BI

 

Your original data:

Capture.PNG

 

Select the 3 Area Columns and choose 'Unpivot Columns' from the Transform tab

Capture2.PNG

 

Now under 'Add Column' - Add an Index Column (from either 0 or 1 depending on your neeeds.)

Capture3.PNG

 

Here you go!

Capture4.PNG




Did I answer your question, or help you along the way?
Please give Kudos or Mark as a Solution!


https://www.linkedin.com/in/forrest-hill-04480730/

Proud to give back to the community!
Thank You!




Thanks a lot for your answer.

Helpful resources

Announcements
October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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 Kudoed Authors