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
umairarshad
Helper II
Helper II

Column to row conversion

Hello all,

I have a data set as below.

 

umairarshad_0-1735282467123.png

 

and i want the to covert it like following 

umairarshad_1-1735282563645.png

 

i.e. date should be in columns and each GSE must have the correct consumption.

 

Pleae advise how to do it

1 ACCEPTED SOLUTION
v-nmadadi-msft
Community Support
Community Support

Hi @umairarshad 
Thanks for reaching out to the Microsoft fabric community forum.
As mentioned by @jennratten   you can use matrix to get your desired visual consisting of dates as columns but if you are trying to transform the underlying data itself use pivot column.
For the sample data I took, Pivoting the date column over Quantity column worked as per your requirement

vnmadadimsft_0-1735292798140.png

 

 

vnmadadimsft_2-1735292798143.png

 



Did I answer your question? Mark my post as a solution, this will help others!

If my response(s) assisted you in any way, don't forget to give "Kudos"

Thanks and Regards

View solution in original post

4 REPLIES 4
v-nmadadi-msft
Community Support
Community Support

Hi @umairarshad 
Thanks for reaching out to the Microsoft fabric community forum.
As mentioned by @jennratten   you can use matrix to get your desired visual consisting of dates as columns but if you are trying to transform the underlying data itself use pivot column.
For the sample data I took, Pivoting the date column over Quantity column worked as per your requirement

vnmadadimsft_0-1735292798140.png

 

 

vnmadadimsft_2-1735292798143.png

 



Did I answer your question? Mark my post as a solution, this will help others!

If my response(s) assisted you in any way, don't forget to give "Kudos"

Thanks and Regards

Thank you. It worked.

jennratten
Super User
Super User

Hello @umairarshad  - thanks for posting to the community forum.

To achieve the desired result you essentially need to add a column for the day number of the month based on the date column, then use a matrix visual.  Add the new Day column to the matrix olumns, add any pertinate descriptive/dimension columns to the matrix rows and add the value to be summarized to the matrix values.

  • To add a column in Power Query to the table for the 'Day of Month' which returns the day number based on the date for the row. 
    • Select the Date column in your table
    • On the ribbon, choose Add Column > Date > Day > Day

Example:

jennratten_0-1735292248699.png

Please let me know if you have any other questions about this solution or how to use it in your scenario.

Thank you Jenn for the prompt response. At the moment, i am not using PBI for it. I need to do it in excel power query.

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 Solution Authors