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
Anonymous
Not applicable

Transpose a column with month name to Rows

Hi!

 

I have the below query that i want to transpose, but when I try, it does not convert the months into rows.

BeforeBefore

 

afterafter

can you guys assist?

 

 
1 ACCEPTED SOLUTION
fhill
Resident Rockstar
Resident Rockstar

Make sure you have ALL the Month Columns selected / highlighted Before clicking 'Unpivot Columns'.  This will then give you Cat & SubCat as columns, with 'Attribute' as the Months and 'Value' as the cooresponding Values.

 

P.S.  Unless you specificlly want it, I would delete the Total Column before Unpivot'ing.  You can add this up later easier than maintaing the Total Row...

 

FOrrest




Did I answer your question, or help you along the way?
Please give Kudos or Mark as a Solution!


https://www.linkedin.com/in/forrest-hill-04480730/

Proud to give back to the community!
Thank You!




View solution in original post

3 REPLIES 3
fhill
Resident Rockstar
Resident Rockstar

Make sure you have ALL the Month Columns selected / highlighted Before clicking 'Unpivot Columns'.  This will then give you Cat & SubCat as columns, with 'Attribute' as the Months and 'Value' as the cooresponding Values.

 

P.S.  Unless you specificlly want it, I would delete the Total Column before Unpivot'ing.  You can add this up later easier than maintaing the Total Row...

 

FOrrest




Did I answer your question, or help you along the way?
Please give Kudos or Mark as a Solution!


https://www.linkedin.com/in/forrest-hill-04480730/

Proud to give back to the community!
Thank You!




amitchandak
Super User
Super User

Anonymous
Not applicable

Thanks AC, I was having issues with the upload.

 

Images should be visible now.

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.