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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
peternznguyen
Helper II
Helper II

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.

peternznguyen
Helper II
Helper II

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

 

 

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

 

Ah, Excellent! Thank you so much!

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
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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

Top Solution Authors