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
Rohit_23
Regular Visitor

Copying/Transfrom multiple columns under each other.

Hi,

I want to transform my data such that every time i update my excel sheet, bi should transform the data such that all the specified columns are below each other.

Raw Data:

CountryRegionProductSample TypeQ1Q2Q3
Inda SouthADAAA302323
Inda WestBODADD43723
Inda SouthFGSAA5634234
Inda NorthKSAAA7868647
Inda WestSISSD323423
Inda EastCFFLK6776223
Inda SouthDJQEE12345

 

What i want: Is it Possible??

CountryRegionProductSample TypeQ
ISouthADAAA30
IWestBODADD43
CSouthFGSAA56
INorthKSAAA78
CWestSISSD32
YEastCFFLK67
DSouthDJQEE12
ISouthADAAA23
IWestBODADD7
CSouthFGSAA34
INorthKSAAA68
CWestSISSD34
YEastCFFLK76
DSouthDJQEE34
ISouthADAAA23
IWestBODADD23
CSouthFGSAA234
INorthKSAAA647
CWestSISSD23
YEastCFFLK223
DSouthDJQEE5
2 ACCEPTED SOLUTIONS
DOLEARY85
Super User
Super User

HI,

 

you could unpivot the columns in power query. If you are likely to have more quarters than just the 3 listed there - select all the columns except the quarters, right click and select unpivot other columns.

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

View solution in original post

Okay, so all you have to do is go into power query select the ones you don't want in one column, right click the selection and select unpivot other columns

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

View solution in original post

4 REPLIES 4
Rohit_23
Regular Visitor

Theres more than 50 columns.

Okay, so all you have to do is go into power query select the ones you don't want in one column, right click the selection and select unpivot other columns

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

Thanks a lot,  this solution worked perfectly as i wanted.

DOLEARY85
Super User
Super User

HI,

 

you could unpivot the columns in power query. If you are likely to have more quarters than just the 3 listed there - select all the columns except the quarters, right click and select unpivot other columns.

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

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.