cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
dle3 Frequent Visitor
Frequent Visitor

Transpose table in Power BI Desktop

Hopefully someone can help me in transpose this table:

transpose1.png

 

Into that table:

transpose2.png

 

My idea was to iterate through the first table and add each row into the new table. But how can i loop through a table using Power BI M language or maybe you have a better way how to do that.

1 ACCEPTED SOLUTION

Accepted Solutions
MarcelBeug Super Contributor
Super Contributor

Re: Transpose table in Power BI Desktop

Select the second column, Choose Transform - Pivot Column, with Values from the 3rd column, Advanced option "Don't Aggregate".

 

That should give you the desired result.

Specializing in Power Query Formula Language (M)

View solution in original post

2 REPLIES 2
MarcelBeug Super Contributor
Super Contributor

Re: Transpose table in Power BI Desktop

Select the second column, Choose Transform - Pivot Column, with Values from the 3rd column, Advanced option "Don't Aggregate".

 

That should give you the desired result.

Specializing in Power Query Formula Language (M)

View solution in original post

JJ3000 Frequent Visitor
Frequent Visitor

Re: Transpose table in Power BI Desktop

Dear,

Thanks for the great advice. For some reason, this didn't 100% work for us.

In our case it however aggregated it to 1 row, while we expect multiple rows (don't aggregate was chosen).

Any idea what could cause this?

Helpful resources

Announcements
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Users Online
Currently online: 184 members 1,918 guests
Please welcome our newest community members: