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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Aurora-BI
Helper I
Helper I

How to Transpose / transform multiple rows into a few columns

Hi Everyone, 

 

I need a little help figuring out how to transpose or transform some data in my Power BI report.

AuroraBI_0-1708965918178.png

Every 19 rows, the data "repeats" so I am thinking I will need a table with 19 coulmns. "Date" , "Builder ID", "Part Number", etc. 

AuroraBI_2-1708966209672.png

 

But when I try to use transpose, I go to having 2 rows with 1000's of columns. Is there a step I am missing in formatting this data? Any assistance would be greatly appreciated. 

1 ACCEPTED SOLUTION
Aurora-BI
Helper I
Helper I

I figured this out, with help from @slorin 

 

The formula I needed was: 

= Table.FromRows(
List.Split(Your_Source[Column2],18),
List.FirstN(Your_Source[Column1],18)
)

 

View solution in original post

4 REPLIES 4
Aurora-BI
Helper I
Helper I

I figured this out, with help from @slorin 

 

The formula I needed was: 

= Table.FromRows(
List.Split(Your_Source[Column2],18),
List.FirstN(Your_Source[Column1],18)
)

 

Aurora-BI
Helper I
Helper I

I get this error when using my original data source: 

AuroraBI_0-1708978707473.png

 

slorin
Super User
Super User

Hi

 

= Table.FromRows(
List.Split(Your_Source[Column2],19),
List.FirstN(Your_Source[Column1],19)
)

 Stéphane

@slorin 

 

Thank you for the feedback. When I try to implement this solution, I get this error: 

AuroraBI_1-1708970458790.png

Is there perhaps something I have missed? 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors