cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
anthony44 Frequent Visitor
Frequent Visitor

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

Accepted Solutions
fhill Established Member
Established Member

Re: Transform Data : multiple columns -> one dimension

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

2 REPLIES 2
fhill Established Member
Established Member

Re: Transform Data : multiple columns -> one dimension

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

anthony44 Frequent Visitor
Frequent Visitor

Re: Transform Data : multiple columns -> one dimension

Thanks a lot for your answer.

Helpful resources

Announcements
GregDeckler

How to Get Your Question Answered Quickly

Power BI Super User, Greg Deckler, explains

Summit North America

Power Platform Summit North America

Register by September 5 to save $200

Back to School Contest

Back to School Contest

Engage and empower students with Power BI!

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Top Ideas
Users Online
Currently online: 44 members 978 guests
Please welcome our newest community members: