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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Converting repeating rows into columns

I have a table which looks like this - (just giving an example and this repeats for multiple times)

 

A.1Order no123
A.2ProductLaptop
A.3Revenue135
A.4Margin25
A.1Order no234
A.2ProductServer
A.3Revenue200
A.4Margin25
A.1Order no456
A.2ProductLaptop
A.3Revenue135
A.4Margin2

 

I would like it to be transformed into this - 

 

A.1A.2A.3A.4
Order noProductRevenueMargin
123Laptop13525
234Server20025
456Laptop1352

 

Can you help me with the steps to achieve this while I am transforming data? 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , Try pivot

https://radacad.com/pivot-and-unpivot-with-power-bi
Transpose : https://yodalearning.com/tutorials/power-query-helps-transposing-data/

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

3 REPLIES 3
dannytan111289
Frequent Visitor

Hi,

 

Did you have any answer to your case? if you have the solution, do u mind to put it here? Thanks

amitchandak
Super User
Super User

@Anonymous , Try pivot

https://radacad.com/pivot-and-unpivot-with-power-bi
Transpose : https://yodalearning.com/tutorials/power-query-helps-transposing-data/

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi,

 

I don't really understand the link that you gave. If we do transpose directly, the result would be 12 columns of A1-A4 repeatedly. Any idea how to make it became 4 columns and multiple rows ? Because i have the same problem. Thanks sir

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors