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 August 31st. Request your voucher.

Reply
andrewb95
Helper II
Helper II

Pivoting Data in a Matrix

I want to be able to pivot how data looks in a matrix. I have the following table currently existing: 

 

ItemABAB
Hour991010
Day    
Monxyzxyzxyzxyz
Tuexyzxyzxyzxyz
Wedxyzxyzxyzxyz

 

I want to be able to pivot the table so that my values are showing as following: 

 

Hour9101112
Mon A     
Mon B    
Tue A    

Tue B

    

 

Essentially the table will show the day of the week twice so that I can easily compare. 

 

The values/fields I have are:
1. Day of the Week 

2. Hour

3. Value A 

4. Value B

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi  @andrewb95 ,

I created some data:

vyangliumsft_0-1639118741438.png

Here are the steps you can follow:

1. Enter the power query, select ValueA and ValueB two columns, click Transform-Unpivot Columns

vyangliumsft_1-1639118741441.png

Result:

vyangliumsft_2-1639118741444.png

2. Create calculated column.

Day_of_the_week = 'Table'[Day of the week] &""& 'Table'[Value]

3. Result:

vyangliumsft_3-1639118741445.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi  @andrewb95 ,

I created some data:

vyangliumsft_0-1639118741438.png

Here are the steps you can follow:

1. Enter the power query, select ValueA and ValueB two columns, click Transform-Unpivot Columns

vyangliumsft_1-1639118741441.png

Result:

vyangliumsft_2-1639118741444.png

2. Create calculated column.

Day_of_the_week = 'Table'[Day of the week] &""& 'Table'[Value]

3. Result:

vyangliumsft_3-1639118741445.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

bcdobbs
Community Champion
Community Champion

Not sure if it 100% meets you requirement but in the Values section of the matrix Format pane there is a setting called "Show On Rows". Try enabling it.

bcdobbs_0-1638795681526.png

 



Ben Dobbs

LinkedIn | Twitter | Blog

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Top Solution Authors