Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Reshaping Data from wide to Long

Hello. 

 

I am looking or help on best practices for reshaping data in Power BI without using R or Python. 

 

I have been given an HR file that contains the following information. Each instance (candidate +recruiter + job + location) has one row and all the events for that instance are columns like this: 

 

Person RecruiterPostionlocationEvent1Event2Event3Event4
1A1234BOSdate1date2date3date4
1C3567BOSdate5date6date7date8
2A1368COSdate9date10date11date12
3B632ATLdate13date14date15date16

 

I need to make all the event columns into two columns event type and date like the table below. Is this possible?

 

Person RecruiterPostionlocationEvent TypeDate
1A1234BOSEvent1date1
1A1234BOSEvent2date2
1A1234BOSEvent3date3
1A1234BOSEvent4date4
1C3567BOSEvent1date5
1C3567BOSEvent2date6
1C3567BOSEvent3date7
1C3567BOSEvent4date8
2A1368COSEvent1date9
2A1368COSEvent2date10
2A1368COSEvent3date11
2A1368COSEvent4date12
3B632ATLEvent1date13
3B632ATLEvent2date14
3B632ATLEvent3date15
3B632ATLEvent4date16

2 Replies