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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
benkenten
Regular Visitor

How to repeat index column, but have unique record from other columns

Hi All

 

I have the following data

 

RespondeeResponse TimeMonthProject 1Days 1Project 2Days 2Project 3Days 3
mickey mouse08/02/2023 15:42Jan-23Researching Things6.5Buying Things6.5Making Things

8

 

 

But I need it in the following format:

 

RespondeeResponse TimeMonthProjectDays
mickey mouse08/02/2023 15:42Jan-23Researching Things6.5
mickey mouse08/02/2023 15:42Jan-23Buying Things6.5
mickey mouse08/02/2023 15:42Jan-23Making Things8

 

Is this possible in Power Query? To Repeat my first 3 "index" columns, but to "pivot" the other columns next to them?

 

Many thanks 🙂

1 ACCEPTED SOLUTION
HotChilli
Super User
Super User

Yes, it's possible.

Select 1st 3 columns and UNpivot Other columns.

Split the attribute column (on non-digit to digit).

Pivot the Attribute1 column using Value in Values and 'Do not aggregate' in Advanced section

View solution in original post

2 REPLIES 2
HotChilli
Super User
Super User

Yes, it's possible.

Select 1st 3 columns and UNpivot Other columns.

Split the attribute column (on non-digit to digit).

Pivot the Attribute1 column using Value in Values and 'Do not aggregate' in Advanced section

That's super helpful, thank you HotChilli. I'm just learning how useful PQ is.

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

Top Solution Authors
Top Kudoed Authors