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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
peterlyngvig
Regular Visitor

Transpose rows to columns

Hi

 

My input is in the form pictured in picture 1 below. Now, I would like to convert that to something like picture 2, in order to be able to calculate sales and EBITDA growth. What is the most efficient way to do this?

 

I have used the "Transpose" function, but seems I can only do that with one variable at a time - i.e. either sales or EBITDA. So, in principle I could do this twice and then merge the two queries, but that would take a long time to load, and intuitively seems inefficient.

 

Hope someone would be able to help.

 

Picture 1 - Input

peterlyngvig_0-1705935101301.png

 

Picture 2: Desired output

peterlyngvig_1-1705935139861.png

 

 

 

1 ACCEPTED SOLUTION

3 REPLIES 3
Ahmedx
Super User
Super User

I optimized the solution, try this variant

 

 

Thanks!

Ahmedx
Super User
Super User

this requires a lot of work, but I have done it for you, please study everything, please do not submit additional requirements here

Screenshot_2.png

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.