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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric 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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

Top Solution Authors
Top Kudoed Authors