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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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