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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
BrianPBI37QF
Frequent Visitor

Transpose/Pivot/Unpivot

Hi All,

 

I have a simple issue which I seem to struggle with. I know there is a sequence for transpose/pivot/unpivot to have a single row for each "Workpack - Phase" with the "fnshDate" in separate columns as such:

BrianPBI37QF_0-1678149464554.png


Much grateful for some help,

B.

1 ACCEPTED SOLUTION
wdx223_Daniel
Super User
Super User

NewStep=Table.Combine(Table.Group(PreviousStepName," Workpack - Phase",{"n",each Table.RemoveLastN(Table.FromColumns(Table.ToColumns(_)&{List.Skip([fnshDate])},Table.ColumnNames(_)&{"Custom"}),1)})[n])

View solution in original post

2 REPLIES 2
wdx223_Daniel
Super User
Super User

NewStep=Table.Combine(Table.Group(PreviousStepName," Workpack - Phase",{"n",each Table.RemoveLastN(Table.FromColumns(Table.ToColumns(_)&{List.Skip([fnshDate])},Table.ColumnNames(_)&{"Custom"}),1)})[n])

ronrsnfld
Super User
Super User

Why not just use Table.Group?

Helpful resources

Announcements
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors