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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Pivot a Power BI Matrix

Hi Experts,

 

I currently have data displayed in a Power BI Matrix as shown below.

 

peternznguyen_1-1714622731885.png

 

 

peternznguyen_2-1714622742880.png

 

 

Now my boss wants to pivot the Matrix to display the data as shown below (YYYY-MM will be increased overtime).

 

peternznguyen_0-1714622703225.png

 

I have tried to create a new table by a DAX function but did not help

Could you please help me?

Many thanks!

2 ACCEPTED SOLUTIONS
jdbuchanan71
Super User
Super User

On your matrix you can turn on 'Switch values to rows' and move the YYYY-MM to the columns.

jdbuchanan71_0-1714623977961.png

jdbuchanan71_1-1714624004540.png

jdbuchanan71_2-1714624012307.png

 

 

View solution in original post

jdbuchanan71
Super User
Super User

Take a look at this video about how to set the sorting on month names.
https://www.youtube.com/watch?v=DY5IWLcgBGA&ab_channel=EnterpriseDNA

 

View solution in original post

7 REPLIES 7
jdbuchanan71
Super User
Super User

Take a look at this video about how to set the sorting on month names.
https://www.youtube.com/watch?v=DY5IWLcgBGA&ab_channel=EnterpriseDNA

 

jdbuchanan71
Super User
Super User

I updated my first post with screen shots.

Anonymous
Not applicable

I have tried to modiy the Matrix in different ways but did no help

peternznguyen_0-1714623791678.pngpeternznguyen_1-1714623803081.png

 

peternznguyen_2-1714623813684.pngpeternznguyen_3-1714623820365.png

 

 

 

jdbuchanan71
Super User
Super User

On your matrix you can turn on 'Switch values to rows' and move the YYYY-MM to the columns.

jdbuchanan71_0-1714623977961.png

jdbuchanan71_1-1714624004540.png

jdbuchanan71_2-1714624012307.png

 

 

Anonymous
Not applicable

How to sort by Month please? 

peternznguyen_0-1714624573622.png

I don't see any from here?

 

peternznguyen_1-1714624619052.png

peternznguyen_2-1714624656644.png

 

Anonymous
Not applicable

Ah, Excellent! Thank you so much!

Anonymous
Not applicable

I have moved the YYYY-MM to the columns. Where is the 'Show values on rows' please?  Could you please give me some screenshots?

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors