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

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

Reply
shaunb94
Helper I
Helper I

Sorting in a Matrix using another column.

Hi, 

I have the below matrix but I am having issues sorting it the way that the user has required. 

I want the matrix to show the 6 months of revenue first then the 6 months of billing rather than side by side so I know I need to sort on something other than month.

 

The solution should look similar the pivot table below, but instead of having 'HRS weighted' & 'HRS', I would have Revenue & Billing. Does anyone know how to do this in Power BI? I have briefly tried calculation groups already but can't seem to work it out yet.

MATRIX:

shaunb94_0-1687009984577.png

 

PIVOT TABLE:

shaunb94_1-1687010041238.png

 

Any help would be greatly appreciated. 

 

Thanks,

Shaun

1 ACCEPTED SOLUTION
DOLEARY85
Resident Rockstar
Resident Rockstar

Hi,

 

you'll need to create a new table with the sorting order for you columns and then use sort by in the column tools to adjust it to that order. I wrote a blog which includes how to do this, check out: https://github.com/DOLEARY85/Power-BI-Replicate-Excel-Table

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

 

View solution in original post

2 REPLIES 2
DOLEARY85
Resident Rockstar
Resident Rockstar

Hi,

 

you'll need to create a new table with the sorting order for you columns and then use sort by in the column tools to adjust it to that order. I wrote a blog which includes how to do this, check out: https://github.com/DOLEARY85/Power-BI-Replicate-Excel-Table

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

 

Thanks so much, I didn't actually need to do anything with the sorting. Duplicating & Unpivoting did the trick by itself. 

shaunb94_0-1687030287218.png

 

Great Blog Post 🙂

 

Helpful resources

Announcements
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 Kudoed Authors