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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Anonymous
Not applicable

Transform month(date) columns to rows

Hello to you that reads this!

 

I'm having a hard time with this situation, any suggestion will be very appreciate!

 

This dataset I'm working on came with the sales values splitted in "month columns", like this:

viniciusz_3-1599613226012.png

 

How is the best way to work with it? I can't filter it by month, I can't work with date intelligence 😢 .

 

I guess the best way is to transform this columns into rows, kind like this:

viniciusz_4-1599613268345.png

 

Am I right? If so, PowerBI does this? The "Columns to Row" option didn't seems to work like this.

 

Best regards! Stay safe.

Vinicius.

1 ACCEPTED SOLUTION
edhans
Super User
Super User

  1. Go to Transform Data
  2. Click on the IDSales and NameProd columns
  3. Right-click and select "Unpivot Other Columns"

That will normalize the data for you.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

It works ! Thank you @edhans and @amitchandak .

Great @Anonymous - I could tell you knew what to do when you were looking for a columns to rows transformation, but just needed a bit of help on how Power Query does that. The Unpivot is one of the most powerful and most common transformations I use.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting
amitchandak
Super User
Super User

@Anonymous , You need to unpivot the table in this case.

https://radacad.com/pivot-and-unpivot-with-power-bi

https://youtu.be/2HjkBtxSM0g

https://youtu.be/oKByyI09Bno
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
edhans
Super User
Super User

  1. Go to Transform Data
  2. Click on the IDSales and NameProd columns
  3. Right-click and select "Unpivot Other Columns"

That will normalize the data for you.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Kudoed Authors